Commit 4a745a39 authored by Max Kellermann's avatar Max Kellermann

client: un-inline the destructor

parent c340485d
...@@ -25,6 +25,12 @@ ...@@ -25,6 +25,12 @@
const Domain client_domain("client"); const Domain client_domain("client");
Client::~Client() noexcept
{
if (FullyBufferedSocket::IsDefined())
FullyBufferedSocket::Close();
}
Instance & Instance &
Client::GetInstance() noexcept Client::GetInstance() noexcept
{ {
......
...@@ -101,10 +101,7 @@ public: ...@@ -101,10 +101,7 @@ public:
unsigned _permission, unsigned _permission,
int num) noexcept; int num) noexcept;
~Client() noexcept { ~Client() noexcept;
if (FullyBufferedSocket::IsDefined())
FullyBufferedSocket::Close();
}
using FullyBufferedSocket::GetEventLoop; using FullyBufferedSocket::GetEventLoop;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment