Skip to content

Commit

Permalink
Fix timeout for bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Brain committed Aug 1, 2017
1 parent 9c1bfaa commit 64cd9c6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/bridge/child.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ let awaitRemoteBridgeForWindow = weakMapMemoize((win : any) : ZalgoPromise<?any>
clearTimeout(timeout);
return resolve(frame);
}

setTimeout(() => {
clearInterval(interval);
return resolve();
}, 2000);
}, 100);

timeout = setTimeout(() => {
clearInterval(interval);
return resolve();
}, 2000);
});

} catch (err) {
Expand Down

0 comments on commit 64cd9c6

Please # to comment.