From 508e4b3a068b701067105674f233520cebb3ba2f Mon Sep 17 00:00:00 2001 From: yomguy Date: Wed, 13 Jul 2011 12:50:17 +0200 Subject: [PATCH] fix no OSC server when stopping record --- favicon.ico => img/favicon.ico | Bin station.py | 8 ++++++-- 2 files changed, 6 insertions(+), 2 deletions(-) rename favicon.ico => img/favicon.ico (100%) diff --git a/favicon.ico b/img/favicon.ico similarity index 100% rename from favicon.ico rename to img/favicon.ico diff --git a/station.py b/station.py index 2734dd3..fabb0c6 100644 --- a/station.py +++ b/station.py @@ -178,8 +178,11 @@ class Station(Conference): def rec_stop(self): if len(self.deefuzzer_pid) != 0: for port in self.deefuzzer_osc_ports: - target = liblo.Address(int(port)) - liblo.send(target, '/record', 0) + try: + target = liblo.Address(int(port)) + liblo.send(target, '/record', 0) + except: + continue def mp3_convert(self): os.system('oggdec -o - '+ self.file_dir+os.sep+self.filename+' | lame -S -m m -h -b '+ self.bitrate + \ @@ -230,3 +233,4 @@ class Station(Conference): time.sleep(2) self.deefuzzer_stop() self.del_lock() + -- 2.39.5