Client: eliminate SetExpired(), call Close() directly

This commit is contained in:
Max Kellermann
2019-04-04 10:37:38 +02:00
parent ea5e6d8f33
commit 58d7804d66
8 changed files with 16 additions and 53 deletions

View File

@@ -25,11 +25,11 @@ Client::OnSocketError(std::exception_ptr ep) noexcept
{
FormatError(ep, "error on client %d", num);
SetExpired();
Close();
}
void
Client::OnSocketClosed() noexcept
{
SetExpired();
Close();
}