mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
bugfix: service manager dead lock
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user