From d0e18e63595b6f4f5aabb659f372fa067e1e982f Mon Sep 17 00:00:00 2001 From: amartin Date: Wed, 13 Feb 2008 09:11:51 +0000 Subject: network --- (limited to 'common/Util/Network.py') diff --git a/common/Util/Network.py b/common/Util/Network.py index dbbc97d..65a15b0 100644 --- a/common/Util/Network.py +++ b/common/Util/Network.py @@ -80,7 +80,7 @@ class Listener( threading.Thread ): def run(self): while 1: # rely on the owner to kill us when necessary try: - inputReady, outputReady, exceptReady = select.select( self.inputSockets, self.outputSockets, self.exceptSockets ) + inputReady, outputReady, exceptReady = select.select( self.inputSockets, self.outputSockets, self.exceptSockets, 0.5 ) if not len( inputReady ): # timeout continue if self.listenerSocket in inputReady: @@ -549,6 +549,7 @@ class Network: if MSG_SIZE[con.message] == 0: con.recvBuf = con.recvBuf[1:] for func in self.processMessage[con.message]: + print "idle_add", func, con.message gobject.idle_add( func, sock, con.message, "" ) else: con.waitingForData = MSG_SIZE[con.message] -- cgit v0.9.1