bugfix: connect auth

This commit is contained in:
Cloud Wu
2014-07-17 21:58:09 +08:00
parent 6bafd05c65
commit 8e4e9ed5c1

View File

@@ -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