@firebase/database 1.0.11-canary.d1c6e311d → 1.0.11-canary.d8aabaf9e

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.
@@ -3750,7 +3750,7 @@ class PersistentConnection extends ServerActions {
3750
3750
  }
3751
3751
  this.lastConnectionEstablishedTime_ = null;
3752
3752
  }
3753
- const timeSinceLastConnectAttempt = Math.max(0, new Date().getTime() - this.lastConnectionAttemptTime_);
3753
+ const timeSinceLastConnectAttempt = 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');