@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.
@@ -4,7 +4,7 @@ import { stringify, jsonEval, contains, assert, isNodeSdk, stringToByteArray, Sh
4
4
  import { Logger, LogLevel } from '@firebase/logger';
5
5
 
6
6
  const name = "@firebase/database";
7
- const version = "1.0.11-canary.d1c6e311d";
7
+ const version = "1.0.11-canary.d8aabaf9e";
8
8
 
9
9
  /**
10
10
  * @license
@@ -3741,7 +3741,7 @@ class PersistentConnection extends ServerActions {
3741
3741
  }
3742
3742
  this.lastConnectionEstablishedTime_ = null;
3743
3743
  }
3744
- const timeSinceLastConnectAttempt = Math.max(0, new Date().getTime() - this.lastConnectionAttemptTime_);
3744
+ const timeSinceLastConnectAttempt = new Date().getTime() - this.lastConnectionAttemptTime_;
3745
3745
  let reconnectDelay = Math.max(0, this.reconnectDelay_ - timeSinceLastConnectAttempt);
3746
3746
  reconnectDelay = Math.random() * reconnectDelay;
3747
3747
  this.log_('Trying to reconnect in ' + reconnectDelay + 'ms');