1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 12:57:57 +02:00

minor code review

This commit is contained in:
gorhill 2016-03-09 11:24:21 -05:00
parent 9772e95046
commit bb66d44bac

View File

@ -164,7 +164,7 @@ vAPI.messaging = {
if ( this.port !== null ) {
if ( this.channelCount !== 0 || this.pendingCount !== 0 ) {
this.portTimer = vAPI.setTimeout(this.portPollerCallback, this.portTimerDelay);
this.portTimerDelay = Math.min(this.portTimerDelay * 2, 3600000);
this.portTimerDelay = Math.min(this.portTimerDelay * 2, 60 * 60 * 1000);
return;
}
}
@ -218,7 +218,7 @@ vAPI.messaging = {
port.onDisconnect.addListener(this.disconnectListenerCallback);
} catch (ex) {
}
this.portTimerDelay = 15000;
this.portTimerDelay = 10000;
if ( this.portTimer === null ) {
this.portTimer = vAPI.setTimeout(this.portPollerCallback, this.portTimerDelay);
}