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

Commit

Permalink
Merge pull request #13 from nickolanack/master
Browse files Browse the repository at this point in the history
break to prevent infinite loop
  • Loading branch information
uhm0311 authored Dec 27, 2021
2 parents 362a2c6 + 9495450 commit 6df5c61
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit 6df5c61

Please sign in to comment.