Skip to content

Commit 5f5c229

Browse files
committed
Fixed error condition.
1 parent 8eb49da commit 5f5c229

File tree

1 file changed

+2
-0
lines changed
  • Provider/src/FirebirdSql.Data.FirebirdClient/Client/Managed

1 file changed

+2
-0
lines changed

Provider/src/FirebirdSql.Data.FirebirdClient/Client/Managed/XdrStream.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ public byte[] ReadBytes(int count)
415415
}
416416
if (toRead == count)
417417
{
418+
_ioFailed = true;
418419
throw new IOException();
419420
}
420421
}
@@ -433,6 +434,7 @@ public async Task<byte[]> ReadBytesAsync(int count)
433434
}
434435
if (toRead == count)
435436
{
437+
_ioFailed = true;
436438
throw new IOException();
437439
}
438440
}

0 commit comments

Comments
 (0)