Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/AsyncTCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,6 @@ int8_t AsyncTCP_detail::tcp_recv(void *arg, struct tcp_pcb *pcb, struct pbuf *pb
e->event = LWIP_TCP_FIN;
e->fin.pcb = pcb;
e->fin.err = err;
// close the PCB in LwIP thread
client->_lwip_fin(e->fin.pcb, e->fin.err);
}

queue_mutex_guard guard;
Expand Down Expand Up @@ -1043,9 +1041,7 @@ int8_t AsyncClient::_lwip_fin(tcp_pcb *pcb, int8_t err) {

// In Async Thread
int8_t AsyncClient::_fin(tcp_pcb *pcb, int8_t err) {
if (_discard_cb) {
_discard_cb(_discard_cb_arg, this);
}
close();
return ERR_OK;
}

Expand Down