diff --git a/player/lua/auto_profiles.lua b/player/lua/auto_profiles.lua index 167724344c..bf1c79721c 100644 --- a/player/lua/auto_profiles.lua +++ b/player/lua/auto_profiles.lua @@ -194,8 +194,7 @@ mp.observe_property("profile-list", "native", function (_, profiles_property) load_profiles(profiles_property) if #profiles < 1 and mp.get_property("load-auto-profiles") == "auto" then - -- make it exit immediately - _G.mp_event_loop = function() end + exit() return end