mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-26 07:02:15 +03:00
Fix a crash due to abort() called from TCP error callback (#428)
This commit is contained in:
@ -277,16 +277,11 @@ class ClientContext {
|
|||||||
|
|
||||||
void _error(err_t err) {
|
void _error(err_t err) {
|
||||||
DEBUGV(":er %d %d %d\r\n", err, _size_sent, _send_waiting);
|
DEBUGV(":er %d %d %d\r\n", err, _size_sent, _send_waiting);
|
||||||
if (err != ERR_ABRT) {
|
|
||||||
abort();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
tcp_arg(_pcb, NULL);
|
tcp_arg(_pcb, NULL);
|
||||||
tcp_sent(_pcb, NULL);
|
tcp_sent(_pcb, NULL);
|
||||||
tcp_recv(_pcb, NULL);
|
tcp_recv(_pcb, NULL);
|
||||||
tcp_err(_pcb, NULL);
|
tcp_err(_pcb, NULL);
|
||||||
_pcb = NULL;
|
_pcb = NULL;
|
||||||
}
|
|
||||||
if(_size_sent && _send_waiting) {
|
if(_size_sent && _send_waiting) {
|
||||||
esp_schedule();
|
esp_schedule();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user