Skip to content

Commit

Permalink
ensure we're calling the correct cancellation function (mapbox#7988)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaefer authored and mourner committed Mar 5, 2019
1 parent d85afad commit 8b493af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/actor.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Actor {
if (cancelable && this.callbacks[data.id] === null) {
// Only add the cancelable callback if the done callback wasn't already called.
// Otherwise we will never be able to delete it.
this.callbacks[data.id] = cancelable;
this.callbacks[data.id] = cancelable.cancel;
}
} else if (typeof data.id !== 'undefined' && this.parent.getWorkerSource) {
// data.type == sourcetype.method
Expand Down

0 comments on commit 8b493af

Please sign in to comment.