Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Commit f0319ac

Browse files
committed
1 parent 34989cc commit f0319ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AsyncTCP.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -723,8 +723,8 @@ bool AsyncClient::_connect(ip_addr_t addr, uint16_t port){
723723
tcp_recv(pcb, &_tcp_recv);
724724
tcp_sent(pcb, &_tcp_sent);
725725
tcp_poll(pcb, &_tcp_poll, 1);
726-
_tcp_connect(pcb, _closed_slot, &addr, port,(tcp_connected_fn)&_tcp_connected);
727-
return true;
726+
esp_err_t err =_tcp_connect(pcb, _closed_slot, &addr, port,(tcp_connected_fn)&_tcp_connected);
727+
return err == ESP_OK;
728728
}
729729

730730
bool AsyncClient::connect(const IPAddress& ip, uint16_t port){

0 commit comments

Comments
 (0)