Skip to content

Commit

Permalink
Fix SM processing of resumed and failed if handled=0
Browse files Browse the repository at this point in the history
  • Loading branch information
legastero committed Jul 30, 2019
1 parent b768bc0 commit 42de249
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/StreamManagement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default class StreamManagement {

public resumed(resp: StreamManagementResume) {
this.id = resp.previousSession;
if (resp.handled) {
if (resp.handled !== undefined) {
this.process(resp, true);
}
this.inboundStarted = true;
Expand All @@ -117,7 +117,7 @@ export default class StreamManagement {
public failed(resp: StreamManagementFailed) {
// Resumption might fail, but the server can still tell us how far
// the old session progressed.
if (resp.handled) {
if (resp.handled !== undefined) {
this.process(resp);
}

Expand Down

0 comments on commit 42de249

Please sign in to comment.