Skip to content

Commit

Permalink
fix: fix observe when receiving block2 response
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Apr 24, 2022
1 parent 3ac74e4 commit db51224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ class Agent extends EventEmitter {
// TODO There is a previous response but is not an ObserveStream !
return
}
} else if (block2 != null && packet.token != null) {
} else if (block2 != null && packet.token != null && req.url.observe == null) {
this._tkToReq.delete(packet.token.toString('hex'))
} else if (!observe && !req.multicast) {
// it is not, so delete the token
Expand Down

0 comments on commit db51224

Please sign in to comment.