Skip to content

Commit

Permalink
Merge pull request #290 from stone-payments/fix-race-signal-parameters
Browse files Browse the repository at this point in the history
Pass signal parameters to race handlers
  • Loading branch information
jacksongarcia authored Dec 20, 2018
2 parents 60251ef + 7b47b34 commit 1e5e488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/pos/drivers/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export default () => {
}

/** Wrap the signal callback to disconnect all slots once one of the signals are emitted */
wrappedCallbacks[signal] = () => {
callback();
wrappedCallbacks[signal] = (...data) => {
callback(...data);
Object.keys(wrappedCallbacks).forEach(signalName => {
if (__DEBUG_LVL__ === 2) {
console.log(`Removing '${signalName}'`);
Expand Down

0 comments on commit 1e5e488

Please sign in to comment.