Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

break to prevent infinite loop #13

Merged
merged 1 commit into from
Dec 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
break to prevent infinite loop
  • Loading branch information
nickolanack committed Jul 20, 2021
commit 9495450bcde1651c5a05ced4b3739dbaf6bb3e20
2 changes: 2 additions & 0 deletions SocketIOSharp/Common/Manager/SocketIOAckManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public SocketIOAck CreateAck(Action<JToken[]> Callback = null)
if (AckList[i] == null)
{
Result = AckList[i] = new SocketIOAck(i, Callback);
break;
}
}
else
Expand All @@ -95,6 +96,7 @@ public SocketIOAck CreateAck(Action<JToken[]> Callback = null)
AckList.Add(Ack);

Result = Ack;
break;
}
}
});
Expand Down