mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
switching or losing server connection was exhausting sockets - release
This commit is contained in:
@@ -218,7 +218,6 @@ static void notify(in_addr_t ip, u16_t hport, u16_t cport) {
|
|||||||
|
|
||||||
// close existing CLI connection and open new one
|
// close existing CLI connection and open new one
|
||||||
if (cli_sock >= 0) closesocket(cli_sock);
|
if (cli_sock >= 0) closesocket(cli_sock);
|
||||||
cli_sock = socket(AF_INET, SOCK_STREAM, 0);
|
|
||||||
connect_cli_socket();
|
connect_cli_socket();
|
||||||
|
|
||||||
LOG_INFO("notified server %s hport %hu cport %hu", inet_ntoa(ip), hport, cport);
|
LOG_INFO("notified server %s hport %hu cport %hu", inet_ntoa(ip), hport, cport);
|
||||||
|
|||||||
Reference in New Issue
Block a user