]> jfr.im git - z_archive/twitter.git/commitdiff
hangup should happen also in noblock mode
authorRouxRC <redacted>
Sun, 16 Feb 2014 02:43:04 +0000 (03:43 +0100)
committerRouxRC <redacted>
Sun, 16 Feb 2014 02:43:04 +0000 (03:43 +0100)
twitter/stream.py

index a0e7c18662841888c2f206b59c3ffdd7646e129c..506b873008f1583a2d6275a29d8fcb79bba31bfc 100644 (file)
@@ -118,7 +118,7 @@ class TwitterJSONIter(object):
                         continue
                 timer = time.time()
                 buf += recv_chunk(sock).decode('utf-8')
-                if not buf and self.block:
+                if not buf:
                     yield {'hangup': True}
                     break
             except SSLError as e: