From c46f2633be37f2b0703051a8c1bb893596adf69e Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Thu, 16 Nov 2017 10:47:18 +0800 Subject: [PATCH] fork may not execute when the service exit, and __gc would send message release without monitor --- lualib/skynet/datasheet/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/skynet/datasheet/init.lua b/lualib/skynet/datasheet/init.lua index c9ac6871..c902b982 100644 --- a/lualib/skynet/datasheet/init.lua +++ b/lualib/skynet/datasheet/init.lua @@ -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