mirror of
https://github.com/matrix-construct/construct
synced 2025-03-16 22:41:46 +01:00
ircd::client: Condition to suppress log warning; minor cleanup.
This commit is contained in:
parent
8a173d802d
commit
0f4270e91a
1 changed files with 13 additions and 7 deletions
|
@ -189,7 +189,7 @@ ircd::client::wait_all()
|
|||
|
||||
while(!client::list.empty())
|
||||
{
|
||||
if(!dock.wait_for(seconds(2)))
|
||||
if(!dock.wait_for(seconds(2)) && !client::list.empty())
|
||||
log::warning
|
||||
{
|
||||
"Waiting for %zu clients to close...", client::list.size()
|
||||
|
@ -463,9 +463,12 @@ try
|
|||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
log::error("socket(%p) EOF: %s",
|
||||
client.sock.get(),
|
||||
e.what());
|
||||
log::error
|
||||
{
|
||||
"socket(%p) EOF: %s",
|
||||
client.sock.get(),
|
||||
e.what()
|
||||
};
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -490,9 +493,12 @@ try
|
|||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
log::error("socket(%p) short_read: %s",
|
||||
client.sock.get(),
|
||||
e.what());
|
||||
log::error
|
||||
{
|
||||
"socket(%p) short_read: %s",
|
||||
client.sock.get(),
|
||||
e.what()
|
||||
};
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue