diff --git a/source/filehost/filehost.cpp b/source/filehost/filehost.cpp index f30811b..aae67e4 100644 --- a/source/filehost/filehost.cpp +++ b/source/filehost/filehost.cpp @@ -62,5 +62,6 @@ std::string FileHost::GetCachedDownloadUrl(std::string &hash) void FileHost::AddCacheDownloadUrl(std::string &hash, std::string &url) { std::pair pair = std::make_pair(hash, url); + cache_downloal_urls.erase(hash); cache_downloal_urls.insert(pair); }