Make SharpCompressArchiveFile throw on double Dispose
This commit is contained in:
parent
dbe0229810
commit
b4445c6f8f
|
@ -26,7 +26,8 @@ namespace BizHawk.Client.Common
|
|||
|
||||
public void Dispose()
|
||||
{
|
||||
_archive?.Dispose();
|
||||
if (_archive == null) throw new ObjectDisposedException(nameof(SharpCompressArchiveFile));
|
||||
_archive.Dispose();
|
||||
_archive = null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue