diff options
author | Leif Johansson <leifj@sunet.se> | 2012-02-07 13:36:54 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2012-02-07 13:36:54 +0100 |
commit | 635d92fc5ded0faec71849554224608f0424fae2 (patch) | |
tree | 667c3b0ff0cddc5b16fcd388b575c40b9a44afc5 /src/meetingtools/ac | |
parent | cfe4ddee2dff06465bf8c66e2e793ae1cf4368d5 (diff) |
refactor poll task
Diffstat (limited to 'src/meetingtools/ac')
-rw-r--r-- | src/meetingtools/ac/api.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/meetingtools/ac/api.py b/src/meetingtools/ac/api.py index 0be2e6a..c17d500 100644 --- a/src/meetingtools/ac/api.py +++ b/src/meetingtools/ac/api.py @@ -192,9 +192,7 @@ class ACPClient(): return (user_count,host_count) - def poll_user_counts(self,room,recheck=0): + def poll_user_counts(self,room): (room.user_count,room.host_count) = self.user_counts(room.sco_id) room.save() - if room.user_count > 0 or recheck > 0: - logging.debug("will recheck %d more times ..." % (recheck -1)) - send_task('meetingtools.apps.room.tasks.poll_user_counts',[room],{'recheck': recheck-1},countdown=2)
\ No newline at end of file + return (room.user_count,room.host_count)
\ No newline at end of file |