Skip to content

Commit

Permalink
Fix lag in rover <-> sim communication (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhaybd authored Sep 23, 2023
1 parent 5149347 commit eb13ca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/RoverSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private void MessageServer()
{
new Thread(() =>
{
while (_socket.IsAlive)
while (IsConnected)
{
if (_outgoingMessages.TryDequeue(out JObject message))
{
Expand Down

0 comments on commit eb13ca2

Please sign in to comment.