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