parent
203ef1adcc
commit
3d757e00f2
1 changed files with 5 additions and 7 deletions
|
|
@ -1109,13 +1109,11 @@ impl Receiver {
|
|||
Ok(Some(reader))
|
||||
}
|
||||
Err(mpsc::error::TryRecvError::Empty) => Ok(None),
|
||||
Err(mpsc::error::TryRecvError::Disconnected) => {
|
||||
return Err(self
|
||||
Err(mpsc::error::TryRecvError::Disconnected) => Err(self
|
||||
.inner
|
||||
.handle
|
||||
.close_reason()
|
||||
.unwrap_or(CommunicationError::StreamClosed));
|
||||
}
|
||||
.unwrap_or(CommunicationError::StreamClosed)),
|
||||
},
|
||||
Err(_) => Ok(None),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue