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)) error(debug.traceback(co))
end end
local f = param local f = param
local response local function response(ok, ...)
response = function(ok, ...)
if ok == "TEST" then if ok == "TEST" then
if dead_service[co_address] then if dead_service[co_address] then
release_watching(co_address) release_watching(co_address)