Skip to content

Commit 1d836a1

Browse files
authored
Call onConnectivityStateChange from async queue. (#1375)
1 parent a94d79a commit 1d836a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/remote/GrpcCallProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ private void initChannelTask() {
254254
Executors.BACKGROUND_EXECUTOR,
255255
() -> {
256256
ManagedChannel channel = initChannel(context, databaseInfo);
257-
onConnectivityStateChange(channel);
257+
asyncQueue.enqueueAndForget(() -> onConnectivityStateChange(channel));
258258
FirestoreGrpc.FirestoreStub firestoreStub =
259259
FirestoreGrpc.newStub(channel)
260260
.withCallCredentials(firestoreHeaders)

0 commit comments

Comments
 (0)