Skip to content

Commit 74a2c1b

Browse files
committed
Fix async reading in FbStreamingRestore.
1 parent 410bdbf commit 74a2c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/FirebirdSql.Data.FirebirdClient/Services/FbStreamingRestore.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ async Task ReadInputAsync(CancellationToken cancellationToken = default)
179179
if (requestedLength > 0)
180180
{
181181
var data = new byte[requestedLength];
182-
var read = InputStream.Read(data, 0, requestedLength);
182+
var read = await InputStream.ReadAsync(data, 0, requestedLength).ConfigureAwait(false);
183183
if (read > 0)
184184
{
185185
Array.Resize(ref data, read);

0 commit comments

Comments
 (0)