mirror of
https://github.com/matrix-construct/construct
synced 2024-11-15 22:41:12 +01:00
ircd::client: Join request pool after client list empty.
This commit is contained in:
parent
2ba495eb8b
commit
a2c98d3be5
1 changed files with 8 additions and 7 deletions
|
@ -186,14 +186,7 @@ ircd::client::wait_all()
|
||||||
context.active(),
|
context.active(),
|
||||||
context.size()
|
context.size()
|
||||||
};
|
};
|
||||||
else
|
|
||||||
log::debug
|
|
||||||
{
|
|
||||||
"Waiting for %zu request contexts to join...",
|
|
||||||
context.size()
|
|
||||||
};
|
|
||||||
|
|
||||||
context.join();
|
|
||||||
while(!client::list.empty())
|
while(!client::list.empty())
|
||||||
{
|
{
|
||||||
if(!dock.wait_for(seconds(2)))
|
if(!dock.wait_for(seconds(2)))
|
||||||
|
@ -202,6 +195,14 @@ ircd::client::wait_all()
|
||||||
"Waiting for %zu clients to close...", client::list.size()
|
"Waiting for %zu clients to close...", client::list.size()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log::debug
|
||||||
|
{
|
||||||
|
"Waiting for %zu request contexts to join...",
|
||||||
|
context.size()
|
||||||
|
};
|
||||||
|
|
||||||
|
context.join();
|
||||||
}
|
}
|
||||||
|
|
||||||
ircd::parse::read_closure
|
ircd::parse::read_closure
|
||||||
|
|
Loading…
Reference in a new issue