From: Roman Bazalevsky Date: Tue, 3 Nov 2015 17:04:22 +0000 (+0300) Subject: Обработка таймаута при закрытии потока. X-Git-Url: https://git.rvb.name/vpproxy.git/commitdiff_plain/c5401ae7940c77b3f65eaccfee8493c61478b579 Обработка таймаута при закрытии потока. --- diff --git a/vlcclient/vlcclient.py b/vlcclient/vlcclient.py index f1e5733..9492156 100644 --- a/vlcclient/vlcclient.py +++ b/vlcclient/vlcclient.py @@ -183,7 +183,10 @@ class VlcClient(object): 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):