diff options
author | Thomas Keck <thomas@macbook.macbook> | 2010-03-12 21:59:29 +0100 |
---|---|---|
committer | Thomas Keck <thomas@macbook.macbook> | 2010-03-12 21:59:29 +0100 |
commit | f5601f16dfefb3ce3cb66eb6dab4ea4c857918ef (patch) | |
tree | 53109c28b89748dc2a58d9e06c8c88f4ffa91e1e | |
parent | e34e89ba091aa2feaf93802787799e7760039eac (diff) | |
download | magicproxy-f5601f16dfefb3ce3cb66eb6dab4ea4c857918ef.tar.gz magicproxy-f5601f16dfefb3ce3cb66eb6dab4ea4c857918ef.zip |
Minor fix
-rw-r--r-- | proxy.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -130,7 +130,7 @@ class MultipleProxyReader(object): speed = (self.endpoints_blocksize[endpoint] / time) self.endpoints_blocksize[endpoint] = int(speed * TIME_SLICE) - if self.fetch_pos +1 <self.content_length: + if self.fetch_pos +1 <self.content_length and not self.channel.is_closed: print self, "start new fetcher" start = self.fetch_pos if self.fetch_pos+self.endpoints_blocksize[endpoint] < self.content_length: |