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