return from Downloader::init() immediately after login

This commit is contained in:
Sude 2013-03-16 21:04:55 +02:00
parent dd35019c45
commit 8e1c6f81e4

View File

@ -66,10 +66,7 @@ int Downloader::init()
progressbar = new ProgressBar(!config.bNoUnicode, !config.bNoColor); progressbar = new ProgressBar(!config.bNoUnicode, !config.bNoColor);
if (config.bLogin || !gogAPI->init()) if (config.bLogin || !gogAPI->init())
{ return this->login();
if (this->login())
return 1;
}
if (!config.bNoCover && config.bDownload && !config.bUpdateCheck) if (!config.bNoCover && config.bDownload && !config.bUpdateCheck)
coverXML = this->getResponse("https://sites.google.com/site/gogdownloader/GOG_covers_v2.xml"); coverXML = this->getResponse("https://sites.google.com/site/gogdownloader/GOG_covers_v2.xml");