client: un-inline the destructor

This commit is contained in:
Max Kellermann 2019-04-03 14:44:01 +02:00
parent c340485dd5
commit 4a745a399f
2 changed files with 7 additions and 4 deletions

View File

@ -25,6 +25,12 @@
const Domain client_domain("client");
Client::~Client() noexcept
{
if (FullyBufferedSocket::IsDefined())
FullyBufferedSocket::Close();
}
Instance &
Client::GetInstance() noexcept
{

View File

@ -101,10 +101,7 @@ public:
unsigned _permission,
int num) noexcept;
~Client() noexcept {
if (FullyBufferedSocket::IsDefined())
FullyBufferedSocket::Close();
}
~Client() noexcept;
using FullyBufferedSocket::GetEventLoop;