Fix: Only stop stream when active player disconnects, not when watchers disconnect
Browse files
app.py
CHANGED
|
@@ -444,8 +444,8 @@ def handle_disconnect(*args):
|
|
| 444 |
'busy': False,
|
| 445 |
'is_active_user': False
|
| 446 |
})
|
| 447 |
-
|
| 448 |
-
|
| 449 |
|
| 450 |
@socketio.on('start_stream')
|
| 451 |
def handle_start_stream(data):
|
|
|
|
| 444 |
'busy': False,
|
| 445 |
'is_active_user': False
|
| 446 |
})
|
| 447 |
+
# Only stop the stream if the active player disconnected
|
| 448 |
+
stop_stream()
|
| 449 |
|
| 450 |
@socketio.on('start_stream')
|
| 451 |
def handle_start_stream(data):
|