diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-08 12:43:15 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-08 12:43:15 +0700 |
commit | 0ff97264a685fba438b81238f692a4cbb942011f (patch) | |
tree | 2f2527937d551aad5ce0abc9351450d515cb9c2a /crypto/src/util/zlib/ZOutputStream.cs | |
parent | DateTime portability changes for tests under PORTABLE (diff) | |
download | BouncyCastle.NET-ed25519-0ff97264a685fba438b81238f692a4cbb942011f.tar.xz |
Tighten up the correspondence b/w Close/Dispose
Diffstat (limited to '')
-rw-r--r-- | crypto/src/util/zlib/ZOutputStream.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/src/util/zlib/ZOutputStream.cs b/crypto/src/util/zlib/ZOutputStream.cs index ede557135..d9f005f69 100644 --- a/crypto/src/util/zlib/ZOutputStream.cs +++ b/crypto/src/util/zlib/ZOutputStream.cs @@ -100,7 +100,7 @@ namespace Org.BouncyCastle.Utilities.Zlib { if (disposing) { - if (this.closed) + if (closed) return; DoClose(); @@ -110,10 +110,11 @@ namespace Org.BouncyCastle.Utilities.Zlib #else public override void Close() { - if (this.closed) + if (closed) return; DoClose(); + base.Close(); } #endif |