Skip to content
Snippets Groups Projects
Unverified Commit 1892ba5f authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

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

Follows on from #17567
parent a51daffb
No related branches found
No related tags found
No related merge requests found
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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment