Author: remi
Date: 2009-07-25 12:19:19 +0200 (Sat, 25 Jul 2009)
New Revision: 5170

Modified:
   
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetsOnlineContainer.py
Log:
* Update the online gadgets informations only once.

Modified: 
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetsOnlineContainer.py
===================================================================
--- 
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetsOnlineContainer.py
     2009-07-25 10:11:38 UTC (rev 5169)
+++ 
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetsOnlineContainer.py
     2009-07-25 10:19:19 UTC (rev 5170)
@@ -37,6 +37,10 @@
         """Update gadget structures with dictionary.
         """
         self.__mutex.acquire()
+        # Update only once
+        if self.__gadgetsCount != 0:
+            self.__mutex.release()
+            return
         self.__gadgetsOnline = []
         self.__gadgetsCount = 0
         gadgetsXmlFile = os.path.join(DirectoriesAndFilesTools.GetOSTMPDir(),


------------------------------------------------------------------------------
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to