Beispiel #1
0
    def run(self):

        sh = StreamHandler()

        while sh.stream.is_active() and settings.is_streaming:
            try:
                sh.updateStream()
            except:
                print("incorrect file")
                sh.stopAll()

        sh.stream.stop_stream()
        sh.stream.close()
        sh.p.terminate()