mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
Fix socket not closed when clusteragent exit (#1741)
Co-authored-by: twinklinggu <twinkling.gu@gmail.com>
This commit is contained in:
@@ -135,7 +135,7 @@ skynet.start(function()
|
||||
|
||||
skynet.dispatch("lua", function(_,source, cmd, ...)
|
||||
if cmd == "exit" then
|
||||
socket.close(fd)
|
||||
socket.close_fd(fd)
|
||||
skynet.exit()
|
||||
elseif cmd == "namechange" then
|
||||
register_name = new_register_name()
|
||||
|
||||
Reference in New Issue
Block a user