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
if self.__sock then
return ok
else
elseif ok then
-- auth may change host, so connect again
return connect_once(self)
end
return ok
end
return true