0
0
Fork 0
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:
Jason Volk 2018-05-28 01:35:10 -07:00
parent 2ba495eb8b
commit a2c98d3be5

View file

@ -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