Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion extension/script/common/socket.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ return function (param)
elseif t.mode == "listen" then
server = assert(net.listen(t.protocol, t.address, t.port))
function server:on_accepted(new_s)
return init_session(new_s)
local ok = init_session(new_s)
assert(ok)
Comment thread
vvvrrooomm marked this conversation as resolved.
Outdated
if writebuf ~= '' then
new_s:write(writebuf)
writebuf = ''
end
return ok
end
else
return
Expand Down