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:
parent
cb310fd75f
commit
ba3f3fc09a
1 changed files with 4 additions and 0 deletions
|
@ -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...",
|
||||||
|
|
Loading…
Reference in a new issue