Update msgserver.lua (#1889)

使用本地变量,不然本地变量`request_handler`未使用
This commit is contained in:
iamwlj
2024-03-18 18:54:12 +08:00
committed by GitHub
parent 3bbb62e673
commit 72688f5771

View File

@@ -262,7 +262,7 @@ function server.start(conf)
if p == nil then
p = { fd }
u.response[session] = p
local ok, result = pcall(conf.request_handler, u.username, message)
local ok, result = pcall(request_handler, u.username, message)
-- NOTICE: YIELD here, socket may close.
result = result or ""
if not ok then