local function is better

local function is the same as " local a; a = function"
This commit is contained in:
snail
2015-08-30 18:17:41 +08:00
parent bad3472124
commit 7f9c3c8c9a

View File

@@ -186,8 +186,7 @@ function suspend(co, result, command, param, size)
error(debug.traceback(co))
end
local f = param
local response
response = function(ok, ...)
local function response(ok, ...)
if ok == "TEST" then
if dead_service[co_address] then
release_watching(co_address)