Skip to content

Commit

Permalink
fix(bacnet-client): remove callback from store if already invoked
Browse files Browse the repository at this point in the history
  • Loading branch information
fh1ch committed May 27, 2017
1 parent a2c34de commit 16e4483
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/bacnet-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ module.exports = function(settings) {
}, settings.adpuTimeout);
invokeStore[id] = function(err, data) {
clearTimeout(timeout);
delete invokeStore[id];
callback(err, data);
};
};
Expand Down

0 comments on commit 16e4483

Please sign in to comment.