Skip to content

Commit 5f2a389

Browse files
committed
Use portable Stream close
1 parent 8ebe171 commit 5f2a389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/src/tsp/TimeStampTokenGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public TimeStampTokenGenerator(
8686
byte[] certEnc = assocCert.GetEncoded();
8787
stream.Write(certEnc, 0, certEnc.Length);
8888
stream.Flush();
89-
stream.Close();
89+
Platform.Dispose(stream);
9090

9191
if (((AlgorithmIdentifier)digestCalculator.AlgorithmDetails).Algorithm.Equals(OiwObjectIdentifiers.IdSha1))
9292
{

0 commit comments

Comments
 (0)