From 0ff97264a685fba438b81238f692a4cbb942011f Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sun, 8 Nov 2015 12:43:15 +0700 Subject: Tighten up the correspondence b/w Close/Dispose --- crypto/src/util/zlib/ZOutputStream.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crypto/src/util/zlib/ZOutputStream.cs') 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 -- cgit 1.4.1