diff options
Diffstat (limited to 'crypto/src/util/io/TeeOutputStream.cs')
-rw-r--r-- | crypto/src/util/io/TeeOutputStream.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/util/io/TeeOutputStream.cs b/crypto/src/util/io/TeeOutputStream.cs index fe3a7586a..75d1d305d 100644 --- a/crypto/src/util/io/TeeOutputStream.cs +++ b/crypto/src/util/io/TeeOutputStream.cs @@ -20,11 +20,11 @@ namespace Org.BouncyCastle.Utilities.IO public override void Close() { - output.Close(); - tee.Close(); + Platform.Dispose(output); + Platform.Dispose(tee); } - public override void Write(byte[] buffer, int offset, int count) + public override void Write(byte[] buffer, int offset, int count) { output.Write(buffer, offset, count); tee.Write(buffer, offset, count); |