Skip to content

Commit

Permalink
Fix for not properly connected client
Browse files Browse the repository at this point in the history
  • Loading branch information
David committed Sep 5, 2017
1 parent 533ff1a commit cde2fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Prime_Numbers_Server/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ private static void ClientDisconnected(Connection connection)
connections.Clear();
return;
}
else if ((isRunning && !connections.Any(x => x == connection)) || (connecting_clients.Find(x => x.connection == connection) != null))
else if (!connections.Any(x => x == connection))
{
return;
}
Expand Down

0 comments on commit cde2fab

Please sign in to comment.