Commit 0e4efbe8 authored by Aaron1011's avatar Aaron1011
Browse files

Merge pull request #435 from skrew/master

Update streaming.py
parents 54b29355 c42cb560
......@@ -153,7 +153,7 @@ class Stream(object):
if self.listener.on_error(resp.status_code) is False:
break
error_counter += 1
if resp.status == 420:
if resp.status_code == 420:
self.retry_time = max(self.retry_420_start, self.retry_time)
sleep(self.retry_time)
self.retry_time = min(self.retry_time * 2, self.retry_time_cap)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment