at least write the acception we swallow here to the server.log

This commit is contained in:
Matthias Mailänder
2013-06-22 15:46:26 +02:00
parent 8ddc840370
commit c18b5e424e

View File

@@ -186,10 +186,11 @@ namespace OpenRA.Server
if (!listener.Server.IsBound) return;
newSocket = listener.AcceptSocket();
}
catch
catch (Exception e)
{
/* could have an exception here when listener 'goes away' when calling AcceptConnection! */
/* alternative would be to use locking but the listener doesnt go away without a reason */
/* TODO: Could have an exception here when listener 'goes away' when calling AcceptConnection! */
/* Alternative would be to use locking but the listener doesnt go away without a reason. */
Log.Write("server", "Accepting the connection failed.", e);
return;
}