Skip to content

Commit

Permalink
Fix async reading in FbStreamingRestore.
Browse files Browse the repository at this point in the history
  • Loading branch information
cincuranet committed Jun 10, 2024
1 parent 410bdbf commit 74a2c1b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ async Task ReadInputAsync(CancellationToken cancellationToken = default)
if (requestedLength > 0)
{
var data = new byte[requestedLength];
var read = InputStream.Read(data, 0, requestedLength);
var read = await InputStream.ReadAsync(data, 0, requestedLength).ConfigureAwait(false);
if (read > 0)
{
Array.Resize(ref data, read);
Expand Down

0 comments on commit 74a2c1b

Please sign in to comment.