mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-09-20 16:24:34 -04:00
Prevent "producer not unregistered" message (#5009)
This commit is contained in:
parent
1a63c7c281
commit
6b2b9a58c4
2 changed files with 5 additions and 0 deletions
|
@ -191,6 +191,10 @@ def respond_with_responder(request, responder, media_type, file_size, upload_nam
|
|||
# in that case.
|
||||
logger.warning("Failed to write to consumer: %s %s", type(e), e)
|
||||
|
||||
# Unregister the producer, if it has one, so Twisted doesn't complain
|
||||
if request.producer:
|
||||
request.unregisterProducer()
|
||||
|
||||
finish_request(request)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue