From 8746f89a3a459b8b502a7d40653788d6a7e52a5c Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Fri, 26 Jun 2009 21:38:32 +0200 Subject: If we have more than we want, we have too much, not the other way. --- lib/thandy/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3