mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
@@ -48,7 +48,6 @@ function gateserver.start(handler)
|
||||
function CMD.close()
|
||||
assert(socket)
|
||||
socketdriver.close(socket)
|
||||
socket = nil
|
||||
end
|
||||
|
||||
local MSG = {}
|
||||
@@ -106,6 +105,8 @@ function gateserver.start(handler)
|
||||
handler.disconnect(fd)
|
||||
end
|
||||
close_fd(fd)
|
||||
else
|
||||
socket = nil
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user