From 4a745a399fe07fc418147a5345ce8b025595ccf4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 3 Apr 2019 14:44:01 +0200 Subject: [PATCH] client: un-inline the destructor --- src/client/Client.cxx | 6 ++++++ src/client/Client.hxx | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/client/Client.cxx b/src/client/Client.cxx index dc34dccb1..517b98f08 100644 --- a/src/client/Client.cxx +++ b/src/client/Client.cxx @@ -25,6 +25,12 @@ const Domain client_domain("client"); +Client::~Client() noexcept +{ + if (FullyBufferedSocket::IsDefined()) + FullyBufferedSocket::Close(); +} + Instance & Client::GetInstance() noexcept { diff --git a/src/client/Client.hxx b/src/client/Client.hxx index bd3cfc4a5..66be0ead8 100644 --- a/src/client/Client.hxx +++ b/src/client/Client.hxx @@ -101,10 +101,7 @@ public: unsigned _permission, int num) noexcept; - ~Client() noexcept { - if (FullyBufferedSocket::IsDefined()) - FullyBufferedSocket::Close(); - } + ~Client() noexcept; using FullyBufferedSocket::GetEventLoop;