mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/s_dns_resolver: Call notify after erasing tag.
This commit is contained in:
parent
474dff9f9f
commit
28f0660a9d
1 changed files with 14 additions and 3 deletions
|
@ -835,9 +835,20 @@ ircd::net::dns::resolver::remove(tag &tag,
|
|||
sendq.size()
|
||||
};
|
||||
|
||||
unqueue(tag);
|
||||
done.notify_all();
|
||||
return it != end(tags)? tags.erase(it) : it;
|
||||
if(it != end(tags))
|
||||
unqueue(tag);
|
||||
|
||||
const auto ret
|
||||
{
|
||||
it != end(tags)?
|
||||
tags.erase(it):
|
||||
it
|
||||
};
|
||||
|
||||
if(ret != end(tags))
|
||||
done.notify_all();
|
||||
|
||||
return it;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue