possibly fix recurring backend timeout

This commit is contained in:
Lion Kortlepel
2020-11-17 23:21:21 +01:00
parent a78f65b274
commit e2a45601b3
3 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ std::string GenerateCall() {
return Ret.str();
}
std::string RunPromise(const std::string& IP, const std::string& R) {
std::packaged_task<std::string()> task([&]() { return PostHTTP(IP, R); });
std::packaged_task<std::string()> task([&] { return PostHTTP(IP, R); });
std::future<std::string> f1 = task.get_future();
std::thread t(std::move(task));
t.detach();