0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-12 04:52:26 +01:00

Fix 'Producer was not unregistered' error (#17569)

Follows on from #17567
This commit is contained in:
Erik Johnston 2024-08-14 13:46:22 +01:00 committed by GitHub
parent a51daffba5
commit 1892ba5f67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

1
changelog.d/17569.misc Normal file
View file

@ -0,0 +1 @@
Speed up responding to media requests.

View file

@ -681,6 +681,9 @@ class ThreadedFileSender:
"""interfaces.IPushProducer"""
# Unregister the consumer so we don't try and interact with it again.
if self.consumer:
self.consumer.unregisterProducer()
self.consumer = None
# Terminate the loop.