Skip to content

Commit 6d875b4

Browse files
authored
Fix connectivity monitor redispatching. (#3663)
In #3467, we changed the connectivity monitor to take callbacks from SCNetworkReachability on the main thread but didn't make the corresponding change to enqueue the notification back onto Firestore's worker.
1 parent 1971af4 commit 6d875b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firestore/core/src/firebase/firestore/remote/connectivity_monitor_apple.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ explicit ConnectivityMonitorApple(
124124
}
125125

126126
void OnReachabilityChanged(SCNetworkReachabilityFlags flags) {
127-
queue()->ExecuteBlocking(
127+
queue()->Enqueue(
128128
[this, flags] { MaybeInvokeCallbacks(ToNetworkStatus(flags)); });
129129
}
130130

0 commit comments

Comments
 (0)