[tuxdroid-svn] r5998 - 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:40:18
|
Author: jerome Date: 2009-12-18 13:39:56 +0100 (Fri, 18 Dec 2009) New Revision: 5998 Modified: software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/IPN/IPNServer.py Log: * Added 'hasClient' function to IPN server. 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-17 13:49:48 UTC (rev 5997) +++ software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/IPN/IPNServer.py 2009-12-18 12:39:56 UTC (rev 5998) @@ -119,6 +119,14 @@ break self.__cliMutex.release() return result + + # -------------------------------------------------------------------------- + # Check if there have at least one connected client. + # -------------------------------------------------------------------------- + def hasClient(self): + '''Check if there have at least one connected client. + ''' + return len(self.__cliLst) > 0 # -------------------------------------------------------------------------- # Start the server. |