We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eab54ce commit 997736dCopy full SHA for 997736d
firebase-firestore/src/main/java/com/google/firebase/firestore/core/FirestoreClient.java
@@ -165,6 +165,11 @@ public QueryListener listen(
165
166
/** Stops listening to a query previously listened to. */
167
public void stopListening(QueryListener listener) {
168
+ // Checks for shutdown but does not raise error, allowing it to be a no-op if client is already
169
+ // shutdown.
170
+ if (this.isShutdown()) {
171
+ return;
172
+ }
173
asyncQueue.enqueueAndForget(() -> eventManager.removeQueryListener(listener));
174
}
175
0 commit comments