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,6 +82,7 @@ Client::Close() noexcept ...@@ -82,6 +82,7 @@ Client::Close() noexcept
{ {
partition->instance.client_list->Remove(*this); partition->instance.client_list->Remove(*this);
if (FullyBufferedSocket::IsDefined())
FullyBufferedSocket::Close(); FullyBufferedSocket::Close();
FormatInfo(client_domain, "[%u] closed", num); FormatInfo(client_domain, "[%u] closed", num);
......
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