ordermanager will dispose IDisposable connections on dispose

This commit is contained in:
Chris Forbes
2010-05-05 18:52:44 +12:00
parent f084f6d446
commit 5cdc47ea6b

View File

@@ -242,6 +242,9 @@ namespace OpenRA.Network
if (replaySaveFile != null)
replaySaveFile.Dispose();
var disposableConnection = Connection as IDisposable;
if (disposableConnection != null) disposableConnection.Dispose();
disposed = true;
GC.SuppressFinalize(this);
}