Skip to content

Commit

Permalink
F! Disconnect em all!!! <PLAT-1366>
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yablonskiy committed Apr 15, 2021
1 parent 55da44e commit 8fa00db
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Pixockets/SmartSock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,14 @@ public void Tick()
_toDelete.Clear();
}

public void DisconnectAll()
{
foreach (var seqState in _seqStates)
{
Disconnect(seqState.Key);
}
}

public void Close()
{
SubSock.Close();
Expand All @@ -263,7 +271,6 @@ public void Close()
_seqStates.Clear();
}


private void SendConnectionRequest()
{
var endPoint = SubSock.RemoteEndPoint;
Expand Down

0 comments on commit 8fa00db

Please sign in to comment.