Just use Dispose methods without arguments (disposing always passed as true)
This commit is contained in:
@@ -366,7 +366,7 @@ namespace OpenRA.Network
|
||||
|
||||
public string ErrorMessage => errorMessage;
|
||||
|
||||
void Dispose(bool disposing)
|
||||
void IDisposable.Dispose()
|
||||
{
|
||||
if (disposed)
|
||||
return;
|
||||
@@ -377,13 +377,7 @@ namespace OpenRA.Network
|
||||
// This will mark the connection as no longer connected and the thread will terminate cleanly.
|
||||
tcp?.Close();
|
||||
|
||||
if (disposing)
|
||||
Recorder?.Dispose();
|
||||
}
|
||||
|
||||
void IDisposable.Dispose()
|
||||
{
|
||||
Dispose(true);
|
||||
Recorder?.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user