Skip to content

Commit

Permalink
623
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKamaev committed Sep 6, 2018
1 parent 4727848 commit 076e35b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/browser/connection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,10 @@ export default class BrowserConnection extends EventEmitter {

clearTimeout(timeout);

if (onTimeout)
if (onTimeout) {
this.emit('error', this._createBrowserDisconnectedError());
console.log('error on timeout');
}
else
resolveTimeout();
});
Expand Down

0 comments on commit 076e35b

Please sign in to comment.