Notify send_tasks when there is a connection error (#231)
This commit is contained in:
committed by
Carl Lerche
parent
ad90f9b97b
commit
e3c6e0c590
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user