0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-10 12:01:15 +01:00

ircd:Ⓜ️:fed::well_known: Fix duplicate well_known queries.

This commit is contained in:
Jason Volk 2023-02-23 17:07:27 -08:00
parent 73c5a4f36b
commit 6cb41fced9

View file

@ -233,6 +233,14 @@ try
}; };
} }
// Ride any duplicate request already pending
for(const auto &req : request::list)
if(req->target == target)
return ctx::future<string_view>
{
req->promise
};
// Synchronize modification of the request::list // Synchronize modification of the request::list
const std::lock_guard request_lock const std::lock_guard request_lock
{ {