mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 07:50:57 +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()
|
sendq.size()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if(it != end(tags))
|
||||||
unqueue(tag);
|
unqueue(tag);
|
||||||
|
|
||||||
|
const auto ret
|
||||||
|
{
|
||||||
|
it != end(tags)?
|
||||||
|
tags.erase(it):
|
||||||
|
it
|
||||||
|
};
|
||||||
|
|
||||||
|
if(ret != end(tags))
|
||||||
done.notify_all();
|
done.notify_all();
|
||||||
return it != end(tags)? tags.erase(it) : it;
|
|
||||||
|
return it;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue