Skip to content

Commit

Permalink
Fixed error condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
cincuranet committed May 23, 2018
1 parent 8eb49da commit 5f5c229
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ public byte[] ReadBytes(int count)
}
if (toRead == count)
{
_ioFailed = true;
throw new IOException();
}
}
Expand All @@ -433,6 +434,7 @@ public async Task<byte[]> ReadBytesAsync(int count)
}
if (toRead == count)
{
_ioFailed = true;
throw new IOException();
}
}
Expand Down

0 comments on commit 5f5c229

Please sign in to comment.