Skip to content

Commit

Permalink
fix: closed stream by CANCEL code
Browse files Browse the repository at this point in the history
  • Loading branch information
DDtKey committed Feb 2, 2022
1 parent 4dc2b4a commit 2ab5d2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/proto/streams/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ impl State {
pub fn ensure_recv_open(&self) -> Result<bool, proto::Error> {
// TODO: Is this correct?
match self.inner {
Closed(Cause::Error(Error::Reset(_, Reason::CANCEL, _))) => Ok(false),
Closed(Cause::Error(ref e)) => Err(e.clone()),
Closed(Cause::ScheduledLibraryReset(reason)) => {
Err(proto::Error::library_go_away(reason))
Expand Down

0 comments on commit 2ab5d2e

Please sign in to comment.