0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 04:38:52 +02:00

modules/s_dns_resolver: Call notify after erasing tag.

This commit is contained in:
Jason Volk 2019-04-15 17:27:16 -07:00
parent 474dff9f9f
commit 28f0660a9d

View file

@ -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