This commit is contained in:
parent
06d5a8987a
commit
a2ab207446
@ -265,6 +265,9 @@ bool AsyncClient::connect(IPAddress ip, uint16_t port){
|
|||||||
tcp_arg(pcb, this);
|
tcp_arg(pcb, this);
|
||||||
tcp_err(pcb, &_s_error);
|
tcp_err(pcb, &_s_error);
|
||||||
size_t err = tcp_connect(pcb, &addr, port,(tcp_connected_fn)&_s_connected);
|
size_t err = tcp_connect(pcb, &addr, port,(tcp_connected_fn)&_s_connected);
|
||||||
|
if (err != ERR_OK) {
|
||||||
|
tcp_close(pcb);
|
||||||
|
}
|
||||||
return (ERR_OK == err);
|
return (ERR_OK == err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user