Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Util/Network.py
diff options
context:
space:
mode:
Diffstat (limited to 'Util/Network.py')
-rw-r--r--Util/Network.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/Util/Network.py b/Util/Network.py
index 252bbe1..2e77068 100644
--- a/Util/Network.py
+++ b/Util/Network.py
@@ -72,14 +72,14 @@ class Listener( threading.Thread ):
threading.Thread.__init__(self)
self.owner = owner
self.listenerSocket = listenerSocket
- self.inputSockets = inputSockets
- self.outputSockets = outputSockets
- self.exceptSockets = exceptSockets
+ self.inputSockets = inputSockets[:]
+ self.outputSockets = outputSockets[:]
+ self.exceptSockets = exceptSockets[:]
def updateSockets( self, inputSockets, outputSockets, exceptSockets ):
- self.inputSockets = inputSockets
- self.outputSockets = outputSockets
- self.exceptSockets = exceptSockets
+ self.inputSockets = inputSockets[:]
+ self.outputSockets = outputSockets[:]
+ self.exceptSockets = exceptSockets[:]
def run(self):
while 1: # rely on the owner to kill us when necessary
@@ -166,6 +166,7 @@ class Network:
if self.listener:
self.listenerSocket.sendto( "EXIT", ("localhost",LISTENER_PORT) )
+ time.sleep(0.01) # get off the cpu so the listerer thread has a chance to clear.. IS THERE A BETTER WAY TO DO THIS?
if self.mode == MD_HOST:
for s in self.inputSockets: