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