Skip to content

Commit 0bfdfef

Browse files
committed
Rename variable
1 parent 9019c35 commit 0bfdfef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

RLBotCS/Server/BridgeHandler.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class BridgeHandler(
1818
MatchStarter matchStarter
1919
)
2020
{
21-
private ManualResetEvent conditionMet = new ManualResetEvent(false);
21+
private ManualResetEvent startReadingInternalMsgs = new ManualResetEvent(false);
2222

2323
private const int MAX_TICK_SKIP = 1;
2424
private readonly BridgeContext _context = new(writer, reader, messenger, matchStarter);
@@ -28,7 +28,7 @@ private async Task HandleInternalMessages()
2828
// if Rocket League is already running,
2929
// we wait for it to connect to us first
3030
if (LaunchManager.IsRocketLeagueRunningWithArgs())
31-
conditionMet.WaitOne();
31+
startReadingInternalMsgs.WaitOne();
3232

3333
_context.Logger.LogDebug("Started reading internal messages");
3434

@@ -68,7 +68,7 @@ private async Task HandleServer()
6868
// Trigger HandleInternalMessages to start processing messages
6969
// it will still wait until we're done,
7070
// since we have a lock on _context
71-
conditionMet.Set();
71+
startReadingInternalMsgs.Set();
7272
}
7373

7474
// reset the counter that lets us know if we're sending too many bytes

0 commit comments

Comments
 (0)