mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-02 01:33:04 +00:00
Fix remote file cannot be fetched
This commit is contained in:
2 files changed
+1
-3
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user