fix one crash when server drops

This commit is contained in:
Chris Forbes
2010-09-09 18:58:26 +12:00
parent 404a4ad578
commit 39d7e54e7f

View File

@@ -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;