Skip to content
Snippets Groups Projects
Commit e701d19e authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Only emit new list if removed stream was listed

parent 950075ad
Branches
No related tags found
No related merge requests found
......@@ -146,7 +146,9 @@ def on_publish_done():
return "Only allowed from localhost", 403
streamingkey = request.values.get("name")
app.logger.info('Existing RTMP stream \"{}\" ended'.format(streamingkey))
stream = streamlist.get_stream(streamingkey)
streamlist.remove_stream(streamingkey)
if not stream.unlisted:
json_list = streamlist.json_list()
app.logger.debug('Sending JSON list {}'.format(json_list))
socketio.emit('stream_removed', {'key': streamingkey, 'list': json_list}, broadcast=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment