SFTP: don't call .stopProducing on the producer registered with OverwriteableFileConsumer (which breaks with warner's new downloader).
This commit is contained in:
parent
325ec1f6c2
commit
88169328be
|
@ -552,9 +552,6 @@ class OverwriteableFileConsumer(PrefixingLogMixin):
|
|||
# truncated to before the milestone.
|
||||
eventually_callback(d)(None)
|
||||
|
||||
# FIXME: causes spurious failures
|
||||
#self.unregisterProducer()
|
||||
|
||||
def close(self):
|
||||
if not self.is_closed:
|
||||
self.is_closed = True
|
||||
|
@ -565,9 +562,7 @@ class OverwriteableFileConsumer(PrefixingLogMixin):
|
|||
self.finish()
|
||||
|
||||
def unregisterProducer(self):
|
||||
if self.producer:
|
||||
self.producer.stopProducing()
|
||||
self.producer = None
|
||||
pass
|
||||
|
||||
|
||||
SIZE_THRESHOLD = 1000
|
||||
|
|
Loading…
Reference in New Issue