From c18b5e424ec2d845a681f982a5dd9a6cb6d28d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 22 Jun 2013 15:46:26 +0200 Subject: [PATCH] at least write the acception we swallow here to the server.log --- OpenRA.Game/Server/Server.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/OpenRA.Game/Server/Server.cs b/OpenRA.Game/Server/Server.cs index df58fc7449..50555e0710 100644 --- a/OpenRA.Game/Server/Server.cs +++ b/OpenRA.Game/Server/Server.cs @@ -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; }