Author: jerome Date: 2009-12-18 13:55:05 +0100 (Fri, 18 Dec 2009) New Revision: 5999
Modified: software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/IPN/IPNServer.py Log: * Added mutex. Modified: software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/IPN/IPNServer.py =================================================================== --- software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/IPN/IPNServer.py 2009-12-18 12:39:56 UTC (rev 5998) +++ software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/IPN/IPNServer.py 2009-12-18 12:55:05 UTC (rev 5999) @@ -126,7 +126,10 @@ def hasClient(self): '''Check if there have at least one connected client. ''' - return len(self.__cliLst) > 0 + self.__cliMutex.acquire() + hasClient = len(self.__cliLst) > 0 + self.__cliMutex.release() + return hasClient # -------------------------------------------------------------------------- # Start the server. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Tux-droid-svn mailing list Tux-droid-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tux-droid-svn