import logging
from vlcmessages import *
import time
-from pprint import pprint
class VlcException(Exception):
self._resultlock.acquire()
to_stop=set()
for stream,lasttime in self.streams.iteritems():
- print stream,lasttime
if time.time()-lasttime>timeout:
to_stop.add(stream)
for stream in to_stop: