Restarts the listener if the server Clients is < MaxClients and not listening.

This commit is contained in:
Jason T Alborough
2020-01-03 14:58:24 -05:00
parent 33f2814ecf
commit dd3227d59e

View File

@@ -693,6 +693,10 @@ namespace PepperDash.Core
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)