@firebase/database 0.14.0-canary.41549bb86 → 0.14.0-canary.d8af08feb

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.
@@ -1250,7 +1250,7 @@ WebSocketConnection.responsesRequiredToBeHealthy = 2;
1250
1250
  WebSocketConnection.healthyTimeout = 30000;
1251
1251
 
1252
1252
  const name = "@firebase/database";
1253
- const version = "0.14.0-canary.41549bb86";
1253
+ const version = "0.14.0-canary.d8af08feb";
1254
1254
 
1255
1255
  /**
1256
1256
  * @license
@@ -13621,9 +13621,11 @@ function getDatabase(app = getApp(), url) {
13621
13621
  const db = _getProvider(app, 'database').getImmediate({
13622
13622
  identifier: url
13623
13623
  });
13624
- const emulator = getDefaultEmulatorHostnameAndPort('database');
13625
- if (emulator) {
13626
- connectDatabaseEmulator(db, ...emulator);
13624
+ if (!db._instanceStarted) {
13625
+ const emulator = getDefaultEmulatorHostnameAndPort('database');
13626
+ if (emulator) {
13627
+ connectDatabaseEmulator(db, ...emulator);
13628
+ }
13627
13629
  }
13628
13630
  return db;
13629
13631
  }