client/New: fix assertion failure in Close()
Caused by a revert accident in commit f2cdbeace6dd30b25d006a21d080a5ba69075f48 Closes https://github.com/MusicPlayerDaemon/MPD/issues/631
This commit is contained in:
parent
f2cdbeace6
commit
c9081a206a
@ -82,7 +82,8 @@ Client::Close() noexcept
|
|||||||
{
|
{
|
||||||
partition->instance.client_list->Remove(*this);
|
partition->instance.client_list->Remove(*this);
|
||||||
|
|
||||||
FullyBufferedSocket::Close();
|
if (FullyBufferedSocket::IsDefined())
|
||||||
|
FullyBufferedSocket::Close();
|
||||||
|
|
||||||
FormatInfo(client_domain, "[%u] closed", num);
|
FormatInfo(client_domain, "[%u] closed", num);
|
||||||
delete this;
|
delete this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user