fork may not execute when the service exit, and __gc would send message release without monitor

This commit is contained in:
Cloud Wu
2017-11-16 10:47:18 +08:00
parent b51e28a3e0
commit c46f2633be

View File

@@ -32,7 +32,7 @@ local function updateobject(name)
core.update(t.object, newhandle)
t.handle = newhandle
skynet.send(datasheet_svr, "lua", "release", handle)
skynet.fork(monitor)
return monitor()
end
skynet.fork(monitor)
end