Do logcontexts correctly

This commit is contained in:
Erik Johnston 2018-01-18 11:57:23 +00:00
parent 1432f7ccd5
commit be0dfcd4a2
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
from twisted.internet import threads, reactor
from synapse.util.logcontext import make_deferred_yieldable
from synapse.util.logcontext import make_deferred_yieldable, preserve_fn
import Queue
@ -70,7 +70,7 @@ class BackgroundFileConsumer(object):
self._producer = producer
self.streaming = streaming
self._finished_deferred = threads.deferToThread(self._writer)
self._finished_deferred = preserve_fn(threads.deferToThread)(self._writer)
if not streaming:
self._producer.resumeProducing()