mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-25 16:34:45 +00:00
some async fixes
This commit is contained in:
@@ -9,7 +9,7 @@ public abstract partial class Volume
|
||||
{
|
||||
#if LEGACY_DOTNET
|
||||
_actualStream.Dispose();
|
||||
await Task.CompletedTask;
|
||||
await Task.CompletedTask.ConfigureAwait(false);
|
||||
#else
|
||||
await _actualStream.DisposeAsync().ConfigureAwait(false);
|
||||
#endif
|
||||
|
||||
@@ -73,7 +73,7 @@ internal partial class Unpack
|
||||
|
||||
if (((WriteBorder - UnpPtr) & MaxWinMask) < MAX_LZ_MATCH + 3 && WriteBorder != UnpPtr)
|
||||
{
|
||||
await UnpWriteBufAsync(cancellationToken);
|
||||
await UnpWriteBufAsync(cancellationToken).ConfigureAwait(false);
|
||||
if (WrittenFileSize > DestUnpSize)
|
||||
{
|
||||
return;
|
||||
@@ -215,7 +215,7 @@ internal partial class Unpack
|
||||
continue;
|
||||
}
|
||||
}
|
||||
await UnpWriteBufAsync(cancellationToken);
|
||||
await UnpWriteBufAsync(cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
private async Task<bool> ReadFilterAsync(
|
||||
|
||||
Reference in New Issue
Block a user