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:
parent
a51daffba5
commit
1892ba5f67
2 changed files with 4 additions and 0 deletions
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 a new issue