diff --git a/src/downloader.cpp b/src/downloader.cpp index d0da2da..893bac9 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -30,6 +30,9 @@ namespace bptime = boost::posix_time; Downloader::Downloader(Config &conf) { this->config = conf; + if (config.bLogin && boost::filesystem::exists(config.sCookiePath)) + if (!boost::filesystem::remove(config.sCookiePath)) + std::cout << "Failed to delete " << config.sCookiePath << std::endl; } Downloader::~Downloader()