From 635d92fc5ded0faec71849554224608f0424fae2 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 7 Feb 2012 13:36:54 +0100 Subject: refactor poll task --- src/meetingtools/ac/api.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/meetingtools/ac') 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 -- cgit v1.1