fix deadlock on stopping the streamer