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 {
Ok(n) => {
if n == 0 {
return Ok(Some(true));
return Ok(Some(false));
} else {
read_some = true;
unsafe {