Skip to content

Commit

Permalink
fix: web-ext run: increased the timeout for connecting to the Firef…
Browse files Browse the repository at this point in the history
…ox debugger from 6 seconds to 30 seconds.
  • Loading branch information
kumar303 committed Jun 27, 2016
1 parent f256739 commit 436ccd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/cmd/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export function defaultReloadStrategy(

export function defaultFirefoxClient(
{connectToFirefox=defaultFirefoxConnector,
maxRetries=25, retryInterval=120}: Object = {}) {
// A max of 250 will try connecting for 30 seconds.
maxRetries=250, retryInterval=120}: Object = {}) {
var retries = 0;

function establishConnection() {
Expand Down Expand Up @@ -81,6 +82,7 @@ export function defaultFirefoxClient(
});
}

log.info('Connecting to the remote Firefox debugger');
return establishConnection();
}

Expand Down
2 changes: 1 addition & 1 deletion src/firefox/remote.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function connect(
log.debug(`Connecting to Firefox on port ${port}`);
return connectToFirefox(port)
.then((client) => {
log.info('Connected to the Firefox remote debugger');
log.debug('Connected to the remote Firefox debugger');
return new RemoteFirefox(client);
});
}
Expand Down

0 comments on commit 436ccd4

Please sign in to comment.