Обработка таймаута при закрытии потока.
authorRoman Bazalevsky <rvb@rvb.name>
Tue, 3 Nov 2015 17:04:22 +0000 (20:04 +0300)
committerRoman Bazalevsky <rvb@rvb.name>
Tue, 3 Nov 2015 17:04:22 +0000 (20:04 +0300)
vlcclient/vlcclient.py

index f1e5733d881d76a27d1570291c41243ab58c8555..949215627f5c9fc89fc87c6fb8104950669533c2 100644 (file)
@@ -183,7 +183,10 @@ class VlcClient(object):
         if time.time()-lasttime>timeout:
           to_stop.add(stream)
       for stream in to_stop:    
         if time.time()-lasttime>timeout:
           to_stop.add(stream)
       for stream in to_stop:    
-        self.stopBroadcast(stream)
+        try:
+          self.stopBroadcast(stream)
+        except:
+          pass  
       self._resultlock.release()
 
     def check_stream(self,stream_name):
       self._resultlock.release()
 
     def check_stream(self,stream_name):