mirror of
https://github.com/matrix-construct/construct
synced 2025-02-19 18:20:19 +01:00
modules/s_dns_resolver: Ensure no double-queueing, at cost.
This commit is contained in:
parent
fc09dd4034
commit
977840a246
1 changed files with 3 additions and 0 deletions
|
@ -436,6 +436,9 @@ void
|
|||
ircd::net::dns::resolver::queue_query(tag &tag)
|
||||
{
|
||||
assert(sendq.size() <= tags.size());
|
||||
if(std::find(begin(sendq), end(sendq), tag.id) != end(sendq))
|
||||
return;
|
||||
|
||||
sendq.emplace_back(tag.id);
|
||||
dock.notify_one();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue