Author: remi
Date: 2008-12-01 09:06:00 +0100 (Mon, 01 Dec 2008)
New Revision: 2945

Modified:
   
software_suite_v2/software/http_server_resources/idle_behavior/trunk/ResourceTuxIdle.py
Log:
* fixed preconditions

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
     2008-11-30 22:23:34 UTC (rev 2944)
+++ 
software_suite_v2/software/http_server_resources/idle_behavior/trunk/ResourceTuxIdle.py
     2008-12-01 08:06:00 UTC (rev 2945)
@@ -64,8 +64,9 @@
     def start(self):
         '''
         '''
-        self.__myThread = threading.Thread(target = self.__myLoop)
-        self.__myThread.start()
+        if len(self.__att_list) != 0:
+            self.__myThread = threading.Thread(target = self.__myLoop)
+            self.__myThread.start()
 
     def stop(self):
         '''
@@ -117,6 +118,9 @@
     def __loadAttitunesList(self):
         '''
         '''
+        if not os.path.isdir(TUXIDLE_ATT_PATH):
+            return
+
         attList = os.listdir(TUXIDLE_ATT_PATH)
 
         for att in attList:


-------------------------------------------------------------------------
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

Reply via email to