SF.net SVN: fclient: [55] trunk/fclient/fclient_ui/fcp_client_manager.py
Status: Pre-Alpha
Brought to you by:
jurner
From: <jU...@us...> - 2007-11-07 17:34:22
|
Revision: 55 http://fclient.svn.sourceforge.net/fclient/?rev=55&view=rev Author: jUrner Date: 2007-11-07 09:34:24 -0800 (Wed, 07 Nov 2007) Log Message: ----------- poll timer is single shot now to avoid troubles with reentrant timer Modified Paths: -------------- trunk/fclient/fclient_ui/fcp_client_manager.py Modified: trunk/fclient/fclient_ui/fcp_client_manager.py =================================================================== --- trunk/fclient/fclient_ui/fcp_client_manager.py 2007-11-07 17:33:26 UTC (rev 54) +++ trunk/fclient/fclient_ui/fcp_client_manager.py 2007-11-07 17:34:24 UTC (rev 55) @@ -242,10 +242,11 @@ ) self.pollTimer = QtCore.QTimer() + self.pollTimer.setSingleShot(True) QtCore.QObject.connect( self.pollTimer, QtCore.SIGNAL('timeout()'), - self.fcpClient.next + self.handleFcpClientNext ) @@ -306,7 +307,14 @@ except StopIteration: return self.connectTimer.start(int(self.connectPriority)) + + def handleFcpClientNext(self): + """Handles reading next message from FcpClient""" + self.fcpClient.next() + self.pollTimer.start(int(self.pollPriority)) + + #****************************************************************************************** # #****************************************************************************************** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |