In STA mode, tcp_send cannot catch err after disconnect station

This commit is contained in:
zhangyanjiao
2017-11-15 17:52:34 +08:00
parent b83792f504
commit 9fbcc6f922
2 changed files with 35 additions and 15 deletions

View File

@@ -1071,7 +1071,7 @@ tcp_output(struct tcp_pcb *pcb)
}
#endif /* TCP_OVERSIZE_DBGCHECK */
err = tcp_output_segment(seg, pcb);
if ((err != ERR_OK) && (err != ERR_RTE)) {
if (err != ERR_OK) {
/* segment could not be sent, for whatever reason */
pcb->flags |= TF_NAGLEMEMERR;
return err;