Browse Source

refinement

pull/123/head
notgiven688 3 years ago
parent
commit
446bdca8e9
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      server/Server/Fleck/WebSocketServer.cs

+ 6
- 1
server/Server/Fleck/WebSocketServer.cs View File

@ -150,7 +150,12 @@ namespace Fleck {
ListenerSocket.Accept (
OnClientConnect, () => acceptDone.Set (),
e => FleckLog.Error ("An error occurred while accepting a client connection", e),
e => { if(RestartAfterListenError) TryRestart(); running = false; acceptDone.Set(); }
e =>
{
FleckLog.Error ("Error while listening for new clients", e);
if(RestartAfterListenError) TryRestart();
running = false; acceptDone.Set();
}
);
acceptDone.WaitOne ();

Loading…
Cancel
Save