Skip to content

Commit

Permalink
fix: Merge pull request #196 from Joxit/fix/clean-responseQueue
Browse files Browse the repository at this point in the history
[Fix] Should clean responseQueue when responseCallback is used
  • Loading branch information
orangejulius committed Mar 21, 2018
2 parents b472ce0 + a97d491 commit b30e84a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pip/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ function handleResults(msg) {
} else {
// no layers left to search, so return an empty array
responseQueue[msg.id].responseCallback(null, []);

delete responseQueue[msg.id];
}

} else {
Expand Down

0 comments on commit b30e84a

Please sign in to comment.