Pick-up streamed data < 512 (ie. first streamed tweet)

This commit is contained in:
Jesse Panganiban 2013-06-24 04:12:06 +08:00
parent e4098156f4
commit 6511dcf4bd

View file

@ -102,7 +102,8 @@ class TwythonStreamer(object):
while self.connected:
response = _send(retry_counter)
for line in response.iter_lines():
# So that first tweets get picked-up.
for line in response.iter_lines(chunk_size=1):
if not self.connected:
break
if line: