Skip to content

Commit

Permalink
Fix Promise resolve callback error
Browse files Browse the repository at this point in the history
Reviewed By: theoy

Differential Revision: D5032525

fbshipit-source-id: 19680cef70f11cccf2abf03d1c1b7e72ac32e43e
  • Loading branch information
johnislarry authored and facebook-github-bot committed May 9, 2017
1 parent de4d355 commit 7dd2cd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions local-cli/server/util/inspectorProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ class Device {
this._handlers.delete(name);
reject(new Error('Timeout waiting for device'));
}, DEVICE_TIMEOUT);
this._handlers.set(name, (...args) => {
this._handlers.set(name, arg => {
clearTimeout(timerId);
fulfill(...args);
fulfill(arg);
});
});
this._send({event: name});
Expand Down

0 comments on commit 7dd2cd3

Please sign in to comment.