mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
fork may not execute when the service exit, and __gc would send message release without monitor
This commit is contained in:
@@ -32,7 +32,7 @@ local function updateobject(name)
|
|||||||
core.update(t.object, newhandle)
|
core.update(t.object, newhandle)
|
||||||
t.handle = newhandle
|
t.handle = newhandle
|
||||||
skynet.send(datasheet_svr, "lua", "release", handle)
|
skynet.send(datasheet_svr, "lua", "release", handle)
|
||||||
skynet.fork(monitor)
|
return monitor()
|
||||||
end
|
end
|
||||||
skynet.fork(monitor)
|
skynet.fork(monitor)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user