0
0
Fork 0
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:
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() 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