We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 995fad6 commit c7feaa1Copy full SHA for c7feaa1
google/cloud/firestore_v1/watch.py
@@ -440,6 +440,9 @@ def on_snapshot(self, proto):
440
proto(`google.cloud.firestore_v1.types.ListenResponse`):
441
Callback method that receives a object to
442
"""
443
+ if self._closing.locked():
444
+ # don't process on_snapshot responses while spinning down, to prevent deadlock
445
+ return
446
if proto is None:
447
self.close()
448
return
0 commit comments