summary refs log tree commit diff
path: root/crypto/bzip2
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/bzip2
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/bzip2')
-rw-r--r--crypto/bzip2/src/CBZip2OutputStream.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/bzip2/src/CBZip2OutputStream.cs b/crypto/bzip2/src/CBZip2OutputStream.cs

index 80b054c29..ffac073fb 100644 --- a/crypto/bzip2/src/CBZip2OutputStream.cs +++ b/crypto/bzip2/src/CBZip2OutputStream.cs
@@ -402,15 +402,15 @@ namespace Org.BouncyCastle.Apache.Bzip2 } #else public override void Close() { - if (closed) { + if (closed) return; - } Finish(); closed = true; - base.Close(); Platform.Dispose(this.bsStream); + + base.Close(); } #endif