Skip to content

Commit ad0fe1f

Browse files
committed
1 parent dc5b3da commit ad0fe1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Renci.SshNet/SftpClient.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2306,6 +2306,7 @@ private List<FileInfo> InternalSynchronizeDirectories(string sourcePath, string
23062306
try
23072307
{
23082308
#pragma warning disable CA2000 // Dispose objects before losing scope
2309+
#pragma warning disable CA2025 // Do not pass 'IDisposable' instances into unawaited tasks
23092310
using (var file = File.OpenRead(localFile.FullName))
23102311
{
23112312
InternalUploadFile(
@@ -2317,6 +2318,7 @@ private List<FileInfo> InternalSynchronizeDirectories(string sourcePath, string
23172318
isAsync: false,
23182319
CancellationToken.None).GetAwaiter().GetResult();
23192320
}
2321+
#pragma warning restore CA2025 // Do not pass 'IDisposable' instances into unawaited tasks
23202322
#pragma warning restore CA2000 // Dispose objects before losing scope
23212323

23222324
uploadedFiles.Add(localFile);

0 commit comments

Comments
 (0)