Author: remi
Date: 2008-09-17 09:39:14 +0200 (Wed, 17 Sep 2008)
New Revision: 1861
Modified:
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/TuxAPIEvent.py
Log:
* don't start the event loop if the client level is ANONYME (The server don't
send the status if the client is ANONYME)
Modified:
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/TuxAPIEvent.py
===================================================================
---
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/TuxAPIEvent.py
2008-09-17 07:31:40 UTC (rev 1860)
+++
software_suite_v2/tuxware/pytuxisalive/trunk/src/tuxisalive/api/TuxAPIEvent.py
2008-09-17 07:39:14 UTC (rev 1861)
@@ -74,6 +74,8 @@
def start(self):
"""Start the loop of event retrieving.
"""
+ if self.__parent.server.getClientLevel() == CLIENT_LEVEL_ANONYME:
+ return
if self.__getEventLoopRun():
return
self.__eventLoopThread = threading.Thread(target = self.__eventLoop)
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn