simplify code

This commit is contained in:
Cloud Wu
2014-07-17 22:00:48 +08:00
parent 8e4e9ed5c1
commit e1ca48603e

View File

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