mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
simplify code
This commit is contained in:
@@ -201,9 +201,7 @@ local function connect_once(self)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
self.__authcoroutine = false
|
self.__authcoroutine = false
|
||||||
if self.__sock then
|
if ok and not self.__sock then
|
||||||
return ok
|
|
||||||
elseif ok then
|
|
||||||
-- auth may change host, so connect again
|
-- auth may change host, so connect again
|
||||||
return connect_once(self)
|
return connect_once(self)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user