Fix remote file cannot be fetched

This commit is contained in:
Tindy X committed 2021-12-15 12:00:57 +08:00
1 parent a4988804d4
commit a24be60d78
2 files changed
+1 -3

No files matched your search

-2
View File
@@ -65,10 +65,8 @@ std::shared_future<std::string> fetchFileAsync(const std::string &path, const st
retVal = std::async(std::launch::async, [path](){return vfs::vfs_get(path);});
else */if(fileExist(path, true))
retVal = std::async(std::launch::async, [path](){return fileGet(path, true);});
#ifdef NO_WEBGET
else if(isLink(path))
retVal = std::async(std::launch::async, [path, proxy, cache_ttl](){return webGet(path, proxy, cache_ttl);});
#endif // NO_WEBGET
else
return std::async(std::launch::async, [](){return std::string();});
if(!async)