diff --git a/service/service_mgr.lua b/service/service_mgr.lua index 5843a945..7f771f3f 100644 --- a/service/service_mgr.lua +++ b/service/service_mgr.lua @@ -10,9 +10,9 @@ function cmd.LAUNCH(service_name, ...) end if s == nil then - s = {} + s = { launch = true } service[service_name] = s - else + elseif s.launch then assert(type(s) == "table") local co = coroutine.running() table.insert(s, co)