From 9b1f5696ce87e1edaee5049d914800e697de7354 Mon Sep 17 00:00:00 2001 From: amartin Date: Mon, 09 Jul 2007 18:14:27 +0000 Subject: network --- 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: diff --git a/scripts/update-activity.sh b/scripts/update-activity.sh index b06a628..c5b625f 100755 --- a/scripts/update-activity.sh +++ b/scripts/update-activity.sh @@ -1,9 +1,9 @@ #!/bin/sh DEST=/usr/share/activities/TamTam.activity SRC=. -PYTHON_DIR=" . Edit miniTamTam Util SynthLab Generation " -OTHER_DIRS=" Resources " -FILES="Util/Clooper/aclient.so" +PYTHON_DIR=" . Edit miniTamTam Util SynthLab Generation Resources " +OTHER_DIRS=" " +FILES="Util/Clooper/aclient.so Resources/crop.csd Resources/univorc.csd " for DIR in $PYTHON_DIR ; do echo cp $SRC/$DIR/*.py $DEST/$DIR cp $SRC/$DIR/*.py $DEST/$DIR -- cgit v0.9.1