SFTP: don't call .stopProducing on the producer registered with OverwriteableFileConsumer (which breaks with warner's new downloader).

This commit is contained in:
david-sarah 2010-06-28 16:19:26 -07:00
parent 325ec1f6c2
commit 88169328be
1 changed files with 1 additions and 6 deletions

View File

@ -552,9 +552,6 @@ class OverwriteableFileConsumer(PrefixingLogMixin):
# truncated to before the milestone. # truncated to before the milestone.
eventually_callback(d)(None) eventually_callback(d)(None)
# FIXME: causes spurious failures
#self.unregisterProducer()
def close(self): def close(self):
if not self.is_closed: if not self.is_closed:
self.is_closed = True self.is_closed = True
@ -565,9 +562,7 @@ class OverwriteableFileConsumer(PrefixingLogMixin):
self.finish() self.finish()
def unregisterProducer(self): def unregisterProducer(self):
if self.producer: pass
self.producer.stopProducing()
self.producer = None
SIZE_THRESHOLD = 1000 SIZE_THRESHOLD = 1000