Skip to content

Commit

Permalink
History logging fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadeusz Magura-Witkowski committed Dec 28, 2013
1 parent c62b767 commit 43669ab
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions application.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,14 @@ def update_data(self, users_now):
self._lastUsersSet = users_now_ids

def timer_update_history():
users_now = get_users_in_hs()

ClientMonitor().update_data(users_now)

Timer(120, timer_update_history).start()
try:
users_now = get_users_in_hs()

ClientMonitor().update_data(users_now)
except:
Timer(10, timer_update_history).start()
else:
Timer(120, timer_update_history).start()

class who_is:
last_seen_updated = 0
Expand Down

0 comments on commit 43669ab

Please sign in to comment.