mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 13:07:03 +03:00
more fixes
This commit is contained in:
@@ -164,6 +164,8 @@ size_t PlainConnection::writeBlock(const std::vector<uint8_t> &data)
|
||||
|
||||
void PlainConnection::closeSocket()
|
||||
{
|
||||
if (this->apSock < 0) return;
|
||||
|
||||
CSPOT_LOG(info, "Closing socket...");
|
||||
shutdown(this->apSock, SHUT_RDWR);
|
||||
close(this->apSock);
|
||||
|
||||
Reference in New Issue
Block a user