Don't DISCONNECT from stream when reader is empty

This commit is contained in:
Nicolas Gotchac 2019-05-28 14:41:58 +02:00
parent 1eb89b8375
commit 686cdbc165
1 changed files with 1 additions and 1 deletions

View File

@ -799,7 +799,7 @@ where
match read { match read {
Ok(n) => { Ok(n) => {
if n == 0 { if n == 0 {
return Ok(Some(true)); return Ok(Some(false));
} else { } else {
read_some = true; read_some = true;
unsafe { unsafe {