Author: remi
Date: 2009-01-15 19:42:40 +0100 (Thu, 15 Jan 2009)
New Revision: 3473
Modified:
software_suite_v2/software/http_server_resources/idle_behavior/trunk/ResourceTuxIdle.py
Log:
* Updated the thread loop of the Resource Idle behavior in order to be faster
stopped.
Modified:
software_suite_v2/software/http_server_resources/idle_behavior/trunk/ResourceTuxIdle.py
===================================================================
---
software_suite_v2/software/http_server_resources/idle_behavior/trunk/ResourceTuxIdle.py
2009-01-15 17:49:07 UTC (rev 3472)
+++
software_suite_v2/software/http_server_resources/idle_behavior/trunk/ResourceTuxIdle.py
2009-01-15 18:42:40 UTC (rev 3473)
@@ -88,7 +88,10 @@
Glb_tuxApi.attitune.load(str(self.__att_list[idx]))
Glb_tuxApi.attitune.play()
self.__resetIdleTimeBegin()
- time.sleep(10.)
+ for i in range(20):
+ if not self.__getStarted():
+ break
+ time.sleep(0.5)
self.__setStarted(False)
def __getIdleTimeBegin(self):
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn