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:
parent
73c5a4f36b
commit
6cb41fced9
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue