Skip to content

Commit

Permalink
[Fix] Should clean responseQueue when responseCallback is used
Browse files Browse the repository at this point in the history
  • Loading branch information
Joxit committed Mar 19, 2018
1 parent b472ce0 commit a97d491
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 a97d491

Please sign in to comment.