summary refs log tree commit diff
path: root/crypto/src/util/zlib/ZOutputStream.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-11-08 12:43:15 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-11-08 12:43:15 +0700
commit0ff97264a685fba438b81238f692a4cbb942011f (patch)
tree2f2527937d551aad5ce0abc9351450d515cb9c2a /crypto/src/util/zlib/ZOutputStream.cs
parentDateTime portability changes for tests under PORTABLE (diff)
downloadBouncyCastle.NET-ed25519-0ff97264a685fba438b81238f692a4cbb942011f.tar.xz
Tighten up the correspondence b/w Close/Dispose
Diffstat (limited to 'crypto/src/util/zlib/ZOutputStream.cs')
-rw-r--r--crypto/src/util/zlib/ZOutputStream.cs5
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