diff --git a/app/Http/Controllers/LiveStreamController.php b/app/Http/Controllers/LiveStreamController.php index f72065059..c372042e9 100644 --- a/app/Http/Controllers/LiveStreamController.php +++ b/app/Http/Controllers/LiveStreamController.php @@ -368,16 +368,16 @@ class LiveStreamController extends Controller if($token) { $stream = LiveStream::whereStreamKey($key)->firstOrFail(); + StreamStart::dispatch($stream->profile_id); return redirect($stream->getStreamRtmpUrl(), 301); } else { $stream = LiveStream::whereStreamId($key)->firstOrFail(); + StreamStart::dispatch($stream->profile_id); } if($request->filled('name') && $token == false) { $stream->live_at = now(); $stream->save(); - - StreamStart::dispatch($stream->profile_id); return []; } else { abort(400);