0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-19 00:10:59 +01: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)) while(!dock.wait_for(seconds(3), is_empty))
{ {
for(const auto &[remote, client] : client::map) for(const auto &[remote, client] : client::map)
{
log::dwarning log::dwarning
{ {
log, "Waiting for client %s", log, "Waiting for client %s",
client->loghead(), client->loghead(),
}; };
assert(!client->sock || client->sock->fini);
}
log::warning log::warning
{ {
log, "Waiting for %zu clients to close...", log, "Waiting for %zu clients to close...",