Skip to content

Commit

Permalink
Fix client disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczy93 committed Nov 8, 2024
1 parent 13568d9 commit 4d2cffa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Client/CentrEDClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,13 @@ public void Disconnect()
{
Send(new QuitPacket());
while (NetState.FlushPending)
{
NetState.Flush();
}
while (NetState.Receive())
{
//Let it read everything
}
while (NetState.Receive())
{
//Let it read everything
}
}
}

Expand Down

0 comments on commit 4d2cffa

Please sign in to comment.