0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 05:08:59 +02:00

ircd::client: Assert socket finish state during wait_all().

This commit is contained in:
Jason Volk 2020-05-24 13:57:03 -07:00
parent cb310fd75f
commit ba3f3fc09a

View file

@ -175,12 +175,16 @@ ircd::client::wait_all()
while(!dock.wait_for(seconds(3), is_empty))
{
for(const auto &[remote, client] : client::map)
{
log::dwarning
{
log, "Waiting for client %s",
client->loghead(),
};
assert(!client->sock || client->sock->fini);
}
log::warning
{
log, "Waiting for %zu clients to close...",