@firebase/database 1.0.11-canary.190cd6217 → 1.0.11-canary.28eaaf4ba
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +2 -2
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +2 -2
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +1 -1
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +2 -2
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +7 -7
package/dist/index.standalone.js
CHANGED
|
@@ -3750,7 +3750,7 @@ class PersistentConnection extends ServerActions {
|
|
|
3750
3750
|
}
|
|
3751
3751
|
this.lastConnectionEstablishedTime_ = null;
|
|
3752
3752
|
}
|
|
3753
|
-
const timeSinceLastConnectAttempt = new Date().getTime() - this.lastConnectionAttemptTime_;
|
|
3753
|
+
const timeSinceLastConnectAttempt = Math.max(0, new Date().getTime() - this.lastConnectionAttemptTime_);
|
|
3754
3754
|
let reconnectDelay = Math.max(0, this.reconnectDelay_ - timeSinceLastConnectAttempt);
|
|
3755
3755
|
reconnectDelay = Math.random() * reconnectDelay;
|
|
3756
3756
|
this.log_('Trying to reconnect in ' + reconnectDelay + 'ms');
|