def stop_streaming(self): ''' Close all attached streams ''' for stream in self.streams: POLLER.close(stream) self.streams.clear()