offloaded.py: when resuming, append new data to incoming file, rather than overwrite it.

This commit is contained in:
Brian Warner 2008-01-17 01:15:32 -07:00
parent 8386b0226b
commit 41cbd1e3a7

View File

@ -182,7 +182,9 @@ class CHKCiphertextFetcher(AskUntilSuccessMixin):
self.log("we already have %d bytes" % self._have, level=log.NOISY)
else:
self._have = 0
self._f = open(self._incoming_file, "wb")
self.log("we do not have any ciphertext yet", level=log.NOISY)
self.log("starting ciphertext fetch", level=log.NOISY)
self._f = open(self._incoming_file, "ab")
# now loop to pull the data from the readers
d = defer.Deferred()