bugfix: service manager dead lock

This commit is contained in:
云风
2013-12-23 11:13:58 +08:00
parent 7b50e01627
commit 8274709924

View File

@@ -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)