From 2a36c2ba1fc1a8385e346e2e0650356792c62cf2 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sun, 28 Nov 2010 10:10:31 +0000 Subject: [PATCH] cleanup network except --- tools/station.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/station.py b/tools/station.py index ef02555..6bdd21a 100644 --- a/tools/station.py +++ b/tools/station.py @@ -520,9 +520,8 @@ class Station(Thread): self.logger.write_error('Station ' + self.short_name + ' : could not close the channel') try: self.channel.open() - self.channel.send(self.chunk) - self.channel.sync() self.channel.set_metadata({'song': self.song, 'charset': 'utf8',}) + self.channel.send(self.chunk) self.channel.sync() except: self.logger.write_error('Station ' + self.short_name + ' : could not restart the channel') -- 2.39.5