]> git.parisson.com Git - deefuzzer.git/commitdiff
fix channel when buffer sync pb
authorGuillaume Pellerin <yomguy@parisson.com>
Sat, 18 Jul 2009 13:33:28 +0000 (13:33 +0000)
committerGuillaume Pellerin <yomguy@parisson.com>
Sat, 18 Jul 2009 13:33:28 +0000 (13:33 +0000)
deefuzzer.py

index e96dd3b9f089d3cbb28d644c0660f18be5297c84..02cc94eab66efa997e238d908be8618e64113726 100755 (executable)
@@ -453,9 +453,11 @@ class Station(Thread):
                         self.channel.sync()
                         # self.logger.write('Station delay (ms) ' + self.short_name + ' : '  + str(self.channel.delay()))
                     except:
-                        self.logger.write('ERROR : Station %s : could not send the buffer... ') % self.short_name
+                        self.logger.write('ERROR : Station ' + self.short_name + ' : could not send the buffer... ')
+                        self.channel.close()
+                        self.channel.open()
+                        continue
                     q.task_done()
-                stream.close()
 
         self.channel.close()