mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 03:57:08 +00:00
Restarts the listener if the server Clients is < MaxClients and not listening.
This commit is contained in:
parent
33f2814ecf
commit
dd3227d59e
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue