diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2009-06-26 21:38:32 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2009-08-25 19:49:40 +0200 |
commit | 8746f89a3a459b8b502a7d40653788d6a7e52a5c (patch) | |
tree | 04ba9b4966006ad60e462745de0aaae34fa17606 /lib/thandy | |
parent | 31c8b4380198e422f6885334c8375cd3e396b1c1 (diff) |
If we have more than we want, we have too much, not the other way.
Diffstat (limited to 'lib/thandy')
-rw-r--r-- | lib/thandy/download.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thandy/download.py b/lib/thandy/download.py index 3756a25..fb1b9f3 100644 --- a/lib/thandy/download.py +++ b/lib/thandy/download.py @@ -470,7 +470,7 @@ class DownloadJob: logging.info("Have stalled file for %s with %s bytes", url, have_length) if self._wantLength != None: - if self._wantLength >= have_length: + if self._wantLength <= have_length: logging.warn("Stalled file is too long; removing it") self._removeTmpFile() haveStalled = False |