summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Keck <thomas@macbook.macbook>2010-03-12 21:59:29 +0100
committerThomas Keck <thomas@macbook.macbook>2010-03-12 21:59:29 +0100
commitf5601f16dfefb3ce3cb66eb6dab4ea4c857918ef (patch)
tree53109c28b89748dc2a58d9e06c8c88f4ffa91e1e
parente34e89ba091aa2feaf93802787799e7760039eac (diff)
downloadmagicproxy-f5601f16dfefb3ce3cb66eb6dab4ea4c857918ef.tar.gz
magicproxy-f5601f16dfefb3ce3cb66eb6dab4ea4c857918ef.zip
Minor fix
-rw-r--r--proxy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy.py b/proxy.py
index d8c8e75..3c9be29 100644
--- a/proxy.py
+++ b/proxy.py
@@ -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: