Commit c3448672 authored by Mikhail Karnevskiy's avatar Mikhail Karnevskiy
Browse files

Do not stop the last existing streamer

parent 07b5f164
......@@ -161,7 +161,9 @@ class Streamer:
log.info("Stream is finished")
self._handle_end_of_stream()
self.worker.stream_finished()
self.stop()
# Stop this instance if it can not start new instance anymore
if self.end_of_stream_callback is None:
self.stop()
return None, None
except Exception as err:
log.critical("Unhandled exception", exc_info=True)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment