Skip to content
Prev Previous commit
add missing sync keyword
  • Loading branch information
wu-hui committed Jul 17, 2019
commit 701fcef2de51f3c117a7168ac1d7cbf3d1757d2c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public synchronized void remove(@NonNull String databaseId) {
}

@Override
public void onDeleted(String firebaseAppName, FirebaseOptions options) {
public synchronized void onDeleted(String firebaseAppName, FirebaseOptions options) {
// Shuts down all database instances and remove them from registry map when App is deleted.
for (Map.Entry<String, FirebaseFirestore> entry : instances.entrySet()) {
entry.getValue().shutdownInternal();
Expand Down