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/bzip2 | |
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 'crypto/bzip2')
-rw-r--r-- | crypto/bzip2/src/CBZip2OutputStream.cs | 6 |
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 |