Notify send_tasks when there is a connection error (#231)

This commit is contained in:
Sean McArthur
2018-03-07 12:19:54 -08:00
committed by Carl Lerche
parent ad90f9b97b
commit e3c6e0c590
4 changed files with 80 additions and 7 deletions

View File

@@ -595,6 +595,7 @@ impl Recv {
) -> Result<(), RecvError> {
// Notify the stream
stream.state.recv_reset(frame.reason());
stream.notify_send();
stream.notify_recv();
Ok(())
}
@@ -605,6 +606,7 @@ impl Recv {
stream.state.recv_err(err);
// If a receiver is waiting, notify it
stream.notify_send();
stream.notify_recv();
}