Skip to content

Commit

Permalink
Fixed disconnection detection on server side
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcidev committed Aug 18, 2024
1 parent 8909925 commit 1e0ab79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server/Server/ServerNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void ServerNetwork::handlePlayerNetwork(ConnectedUser* user)

// get data for that client
int dataLength = network->ReceiveData(user, networkData);
if (!dataLength)
if (dataLength <= 0)
{
if (!network->IsShuttingDown())
{
Expand Down

0 comments on commit 1e0ab79

Please sign in to comment.