From bb66d44bac825b4426d6345d7377e25fa1f1abff Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 9 Mar 2016 11:24:21 -0500 Subject: [PATCH] minor code review --- platform/chromium/vapi-client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/chromium/vapi-client.js b/platform/chromium/vapi-client.js index dd54c5bd9..6e455e4bb 100644 --- a/platform/chromium/vapi-client.js +++ b/platform/chromium/vapi-client.js @@ -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); }