[tuxdroid-svn] r5999 - software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/execut
Status: Beta
Brought to you by:
ks156
From: jerome <c2m...@c2...> - 2009-12-18 12:55:19
|
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. |