Save Galaxy tokens in destructor

This commit is contained in:
Sude 2017-09-20 07:01:43 +03:00
parent 257b6b0137
commit 6c2a3b4392

View File

@ -152,6 +152,10 @@ Downloader::~Downloader()
if (Globals::globalConfig.bReport)
if (this->report_ofs)
this->report_ofs.close();
if (!gogGalaxy->isTokenExpired())
this->saveGalaxyJSON();
delete progressbar;
delete gogGalaxy;
delete gogAPI;