mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-21 00:56:38 +08:00
Merge branch 'bugfix/smartconfig_fail' into 'master'
fix: Sometimes smartconfig terminates since send UDP fail See merge request sdk/ESP8266_RTOS_SDK!1592
This commit is contained in:
@ -180,7 +180,11 @@ static void sc_ack_send_task(void* pvParameters)
|
||||
}
|
||||
|
||||
ESP_LOGE(TAG, "send failed, errno %d", err);
|
||||
goto _end;
|
||||
if ((send_sock >= LWIP_SOCKET_OFFSET) && (send_sock <= (FD_SETSIZE - 1))) {
|
||||
close(send_sock);
|
||||
}
|
||||
send_sock = -1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user