diff options
Diffstat (limited to 'module/network/HTTPDownload.py')
| -rw-r--r-- | module/network/HTTPDownload.py | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/module/network/HTTPDownload.py b/module/network/HTTPDownload.py index ecc7f24b8..1c1f53b88 100644 --- a/module/network/HTTPDownload.py +++ b/module/network/HTTPDownload.py @@ -146,7 +146,9 @@ class HTTPDownload():                  for i in range(1, chunks):                      c = HTTPChunk(i, self, self.info.getChunkRange(i), resume)                      self.chunks.append(c) -                    self.m.add_handle(c.getHandle()) +                    handle = c.getHandle() +                    if handle: self.m.add_handle(handle) +              while 1:                  ret, num_handles = self.m.perform() | 
