fixup! Announce-Service: Add conditional variable for the wait in the announce thread
This commit is contained in:
parent
eba2351f9e
commit
423df498d9
|
@ -124,7 +124,7 @@ public:
|
||||||
void AddPlayer(const std::string& /*nickname*/, const MacAddress& /*mac_address*/,
|
void AddPlayer(const std::string& /*nickname*/, const MacAddress& /*mac_address*/,
|
||||||
const u64 /*game_id*/, const std::string& /*game_name*/) override {}
|
const u64 /*game_id*/, const std::string& /*game_name*/) override {}
|
||||||
std::future<Common::WebResult> Announce() override {
|
std::future<Common::WebResult> Announce() override {
|
||||||
return std::async(std::launch::async, []() {
|
return std::async(std::launch::deferred, []() {
|
||||||
return Common::WebResult{Common::WebResult::Code::NoWebservice,
|
return Common::WebResult{Common::WebResult::Code::NoWebservice,
|
||||||
"WebService is missing"};
|
"WebService is missing"};
|
||||||
});
|
});
|
||||||
|
|
Reference in New Issue