@firebase/database 1.0.11-canary.24a90eeb0 → 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.
@@ -1259,7 +1259,7 @@ WebSocketConnection.responsesRequiredToBeHealthy = 2;
1259
1259
  WebSocketConnection.healthyTimeout = 30000;
1260
1260
 
1261
1261
  const name = "@firebase/database";
1262
- const version = "1.0.11-canary.24a90eeb0";
1262
+ const version = "1.0.11-canary.28eaaf4ba";
1263
1263
 
1264
1264
  /**
1265
1265
  * @license
@@ -3753,7 +3753,7 @@ class PersistentConnection extends ServerActions {
3753
3753
  }
3754
3754
  this.lastConnectionEstablishedTime_ = null;
3755
3755
  }
3756
- const timeSinceLastConnectAttempt = new Date().getTime() - this.lastConnectionAttemptTime_;
3756
+ const timeSinceLastConnectAttempt = Math.max(0, new Date().getTime() - this.lastConnectionAttemptTime_);
3757
3757
  let reconnectDelay = Math.max(0, this.reconnectDelay_ - timeSinceLastConnectAttempt);
3758
3758
  reconnectDelay = Math.random() * reconnectDelay;
3759
3759
  this.log_('Trying to reconnect in ' + reconnectDelay + 'ms');