From c5c94036c33047cf56fd1d28a6f97cf03d1a7625 Mon Sep 17 00:00:00 2001 From: snail Date: Tue, 27 Jan 2015 22:00:24 +0800 Subject: [PATCH] varable delcared in closure but used for global fork_queue is used in skynet.exit,but declared after it. --- lualib/skynet.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lualib/skynet.lua b/lualib/skynet.lua index ec9258b1..c4dd3578 100644 --- a/lualib/skynet.lua +++ b/lualib/skynet.lua @@ -52,6 +52,7 @@ local watching_service = {} local watching_session = {} local dead_service = {} local error_queue = {} +local fork_queue = {} -- suspend is function local suspend @@ -468,8 +469,6 @@ function skynet.dispatch_unknown_response(unknown) return prev end -local fork_queue = {} - local tunpack = table.unpack function skynet.fork(func,...)