From e04bfa8cd89c8b1099bce92d1ea500af998f5e32 Mon Sep 17 00:00:00 2001 From: mattosaurus Date: Thu, 30 May 2024 15:12:50 +0100 Subject: [PATCH] Use FlushAsync --- PgpCore/PGP.VerifyAsync.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PgpCore/PGP.VerifyAsync.cs b/PgpCore/PGP.VerifyAsync.cs index bf418ad..2242192 100644 --- a/PgpCore/PGP.VerifyAsync.cs +++ b/PgpCore/PGP.VerifyAsync.cs @@ -158,7 +158,7 @@ public async Task VerifyAsync(Stream inputStream, Stream outputStream = nu else throw new PgpException("Message is not a encrypted and signed file or simple signed file."); - outputStream.Flush(); + await outputStream.FlushAsync(); outputStream.Seek(0, SeekOrigin.Begin); return (verified);