Permalink
Browse files

Fix Promise resolve callback error

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 7dd2cd30af9974ad4e2c1868ca61ef0b0b5e75f6
Showing with 2 additions and 2 deletions.
  1. +2 −2 local-cli/server/util/inspectorProxy.js
@@ -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});

0 comments on commit 7dd2cd3

Please sign in to comment.