Skip to content

Commit

Permalink
Restarts the listener if the server Clients is < MaxClients and not l…
Browse files Browse the repository at this point in the history
…istening.
  • Loading branch information
Jason T Alborough committed Jan 3, 2020
1 parent 33f2814 commit dd3227d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,10 @@ void SecureServer_SocketStatusChange(SecureTCPServer server, uint clientIndex, S
ClientReadyAfterKeyExchange.Remove(clientIndex);
if (WaitingForSharedKey.Contains(clientIndex))
WaitingForSharedKey.Remove(clientIndex);
if (SecureServer.MaxNumberOfClientSupported > SecureServer.NumberOfClientsConnected && SecureServer.State == ServerState.SERVER_NOT_LISTENING)
{
Listen();
}
}
}
catch (Exception ex)
Expand Down

0 comments on commit dd3227d

Please sign in to comment.