summary refs log tree commit diff
path: root/crypto/src/util/io/TeeOutputStream.cs
diff options
context:
space:
mode:
authorOren Novotny <oren@novotny.org>2014-08-26 22:05:11 -0400
committerOren Novotny <oren@novotny.org>2014-08-26 22:05:11 -0400
commit92f85dc4a4b4b0127c791ea6d8732bd2de53289e (patch)
treed20ab79e4da9d7bc932efccc01f825617b302e30 /crypto/src/util/io/TeeOutputStream.cs
parentConvert proj back to PCL (diff)
downloadBouncyCastle.NET-ed25519-92f85dc4a4b4b0127c791ea6d8732bd2de53289e.tar.xz
Initial re-migration from original code
Diffstat (limited to 'crypto/src/util/io/TeeOutputStream.cs')
-rw-r--r--crypto/src/util/io/TeeOutputStream.cs16
1 files changed, 10 insertions, 6 deletions
diff --git a/crypto/src/util/io/TeeOutputStream.cs b/crypto/src/util/io/TeeOutputStream.cs

index fe3a7586a..cebca89fe 100644 --- a/crypto/src/util/io/TeeOutputStream.cs +++ b/crypto/src/util/io/TeeOutputStream.cs
@@ -18,12 +18,16 @@ namespace Org.BouncyCastle.Utilities.IO this.tee = tee; } - public override void Close() - { - output.Close(); - tee.Close(); - } - + protected override void Dispose(bool disposing) + { + if (disposing) + { + output.Dispose(); + tee.Dispose(); + } + base.Dispose(disposing); + } + public override void Write(byte[] buffer, int offset, int count) { output.Write(buffer, offset, count);