mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
bugfix: connect auth
This commit is contained in:
@@ -203,10 +203,11 @@ local function connect_once(self)
|
|||||||
self.__authcoroutine = false
|
self.__authcoroutine = false
|
||||||
if self.__sock then
|
if self.__sock then
|
||||||
return ok
|
return ok
|
||||||
else
|
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
|
||||||
|
return ok
|
||||||
end
|
end
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user