X-Git-Url: https://git.rvb.name/vpproxy.git/blobdiff_plain/c65fdd8ebbd745ba03e5477eb317343aace3ebba..c5401ae7940c77b3f65eaccfee8493c61478b579:/vlcclient/vlcclient.py diff --git a/vlcclient/vlcclient.py b/vlcclient/vlcclient.py index 1fa5e43..9492156 100644 --- a/vlcclient/vlcclient.py +++ b/vlcclient/vlcclient.py @@ -183,9 +183,19 @@ 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): + if stream_name in self.streams: + self.streams[stream_name]=time.time() + return True + else: + return False + def pauseBroadcast(self, stream_name): return self._write(VlcMessage.request.pauseBroadcast(stream_name))