Skip to content

Commit

Permalink
fix bug for ack when token length is not 4
Browse files Browse the repository at this point in the history
  • Loading branch information
maxired authored and Peuch Lucile committed Feb 20, 2014
1 parent 2b78e36 commit 20b452b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Agent.prototype._handle = function handle(msg, rsinfo) {
// it is an observe request
// and we are already streaming
return req.response.append(packet)
else if (!req.url.observe)
else if (!req.url.observe && packet.token.length == 4)
// it is not, so delete the token
delete that._tkToReq[packet.token.readUInt32BE(0)]

Expand Down

0 comments on commit 20b452b

Please sign in to comment.