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.