summaryrefslogtreecommitdiff
path: root/lib/thandy/download.py
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2009-06-26 21:38:32 +0200
committerSebastian Hahn <sebastian@torproject.org>2009-08-25 19:49:40 +0200
commit8746f89a3a459b8b502a7d40653788d6a7e52a5c (patch)
tree04ba9b4966006ad60e462745de0aaae34fa17606 /lib/thandy/download.py
parent31c8b4380198e422f6885334c8375cd3e396b1c1 (diff)
If we have more than we want, we have too much, not the other way.
Diffstat (limited to 'lib/thandy/download.py')
-rw-r--r--lib/thandy/download.py2
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