mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Fix 'Producer was not unregistered' error (#17569)
Follows on from #17567
This commit is contained in:
parent
a51daffba5
commit
1892ba5f67
1
changelog.d/17569.misc
Normal file
1
changelog.d/17569.misc
Normal file
@ -0,0 +1 @@
|
||||
Speed up responding to media requests.
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user