@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.
@@ -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 = "0.14.0-canary.41549bb86";
7
+ const version = "0.14.0-canary.d8af08feb";
8
8
 
9
9
  /**
10
10
  * @license
@@ -13617,9 +13617,11 @@ function getDatabase(app = getApp(), url) {
13617
13617
  const db = _getProvider(app, 'database').getImmediate({
13618
13618
  identifier: url
13619
13619
  });
13620
- const emulator = getDefaultEmulatorHostnameAndPort('database');
13621
- if (emulator) {
13622
- connectDatabaseEmulator(db, ...emulator);
13620
+ if (!db._instanceStarted) {
13621
+ const emulator = getDefaultEmulatorHostnameAndPort('database');
13622
+ if (emulator) {
13623
+ connectDatabaseEmulator(db, ...emulator);
13624
+ }
13623
13625
  }
13624
13626
  return db;
13625
13627
  }