]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
SFTP: don't call .stopProducing on the producer registered with OverwriteableFileCons...
authordavid-sarah <david-sarah@jacaranda.org>
Mon, 28 Jun 2010 23:19:26 +0000 (16:19 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Mon, 28 Jun 2010 23:19:26 +0000 (16:19 -0700)
src/allmydata/frontends/sftpd.py

index 894af5f2704df84eab2724481e2c05b4c6f0f1e2..72a2123897518e44d9525a56ba60872ae7fb5cef 100644 (file)
@@ -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