chrisxx commited on
Commit
eacf528
·
1 Parent(s): dd2ff9f

Fix: Only stop stream when active player disconnects, not when watchers disconnect

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -444,8 +444,8 @@ def handle_disconnect(*args):
444
  'busy': False,
445
  'is_active_user': False
446
  })
447
-
448
- stop_stream()
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):