Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes

This commit is contained in:
Erik Johnston 2024-08-14 13:47:10 +01:00
commit 988e74eabf
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""" """interfaces.IPushProducer"""
# Unregister the consumer so we don't try and interact with it again. # Unregister the consumer so we don't try and interact with it again.
if self.consumer:
self.consumer.unregisterProducer()
self.consumer = None self.consumer = None
# Terminate the loop. # Terminate the loop.