mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-20 16:46:17 +08:00
fix: Sometimes smartconfig terminates since send UDP fail
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