Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Util/Network.py13
-rwxr-xr-xscripts/update-activity.sh6
2 files changed, 10 insertions, 9 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:
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