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