Skip to content

Commit

Permalink
switching or losing server connection was exhausting sockets - release
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe44 committed Nov 14, 2021
1 parent 1dbffe6 commit faa9976
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/squeezelite/controls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
if (cli_sock >= 0) closesocket(cli_sock);
cli_sock = socket(AF_INET, SOCK_STREAM, 0);
connect_cli_socket();

LOG_INFO("notified server %s hport %hu cport %hu", inet_ntoa(ip), hport, cport);
Expand Down

0 comments on commit faa9976

Please sign in to comment.