mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
clear socket when connect failed
This commit is contained in:
@@ -145,6 +145,8 @@ local function connect(id, func)
|
|||||||
suspend(s)
|
suspend(s)
|
||||||
if s.connected then
|
if s.connected then
|
||||||
return id
|
return id
|
||||||
|
else
|
||||||
|
socket_pool[id] = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user