fix one crash when server drops
This commit is contained in:
@@ -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 (SocketException) { /* drop this on the floor; we'll pick up the disconnect from the reader thread */ }
|
||||||
|
catch (ObjectDisposedException) { /* ditto */ }
|
||||||
}
|
}
|
||||||
|
|
||||||
bool disposed = false;
|
bool disposed = false;
|
||||||
|
|
||||||
public void Dispose ()
|
public void Dispose ()
|
||||||
{
|
{
|
||||||
if (disposed) return;
|
if (disposed) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user