diff --git a/src/downloader.cpp b/src/downloader.cpp index 394605e..2e8a2b2 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -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;