diff --git a/OpenRA.Game/Network/Connection.cs b/OpenRA.Game/Network/Connection.cs index 808d4ef3e8..ea39217c2d 100755 --- a/OpenRA.Game/Network/Connection.cs +++ b/OpenRA.Game/Network/Connection.cs @@ -140,8 +140,11 @@ namespace OpenRA.Network } catch (SocketException) { /* drop this on the floor; we'll pick up the disconnect from the reader thread */ } + catch (ObjectDisposedException) { /* ditto */ } } + bool disposed = false; + public void Dispose () { if (disposed) return;