Pick-up streamed data < 512 (ie. first streamed tweet)
This commit is contained in:
parent
e4098156f4
commit
6511dcf4bd
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue