Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
timer on update if not screen not ready
  • Loading branch information
Nic0 committed Nov 28, 2011
1 parent 025ebdd commit 0a9b2f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tyrs/update.py
Expand Up @@ -50,6 +50,8 @@ def start_new_thread(self):
update.start()

def update_timeline(self):
while not self.interface.loop.screen._started:
time.sleep(1)
timeline = ('home', 'mentions', 'direct')
for t in timeline:
self.api.update_timeline(t)
Expand Down

0 comments on commit 0a9b2f7

Please sign in to comment.