From 8e1c6f81e4f40c3b960bcc5e97504cae6bf74267 Mon Sep 17 00:00:00 2001 From: Sude Date: Sat, 16 Mar 2013 21:04:55 +0200 Subject: [PATCH] return from Downloader::init() immediately after login --- src/downloader.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/downloader.cpp b/src/downloader.cpp index 13296a6..8d5a5f0 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -66,10 +66,7 @@ int Downloader::init() progressbar = new ProgressBar(!config.bNoUnicode, !config.bNoColor); if (config.bLogin || !gogAPI->init()) - { - if (this->login()) - return 1; - } + return this->login(); if (!config.bNoCover && config.bDownload && !config.bUpdateCheck) coverXML = this->getResponse("https://sites.google.com/site/gogdownloader/GOG_covers_v2.xml");