Commit c9081a20 authored by Max Kellermann's avatar Max Kellermann

client/New: fix assertion failure in Close()

Caused by a revert accident in commit f2cdbeac Closes https://github.com/MusicPlayerDaemon/MPD/issues/631
parent f2cdbeac
......@@ -82,7 +82,8 @@ Client::Close() noexcept
{
partition->instance.client_list->Remove(*this);
FullyBufferedSocket::Close();
if (FullyBufferedSocket::IsDefined())
FullyBufferedSocket::Close();
FormatInfo(client_domain, "[%u] closed", num);
delete this;
......
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