nc_recved() connection closure change

This commit is contained in:
Joseph Henry 2016-01-15 13:02:48 -08:00
parent 7107297c25
commit 1e2c434ae8

View File

@ -733,8 +733,8 @@ err_t NetconEthernetTap::nc_recved(void *arg, struct tcp_pcb *PCB, struct pbuf *
if(p == NULL) { if(p == NULL) {
if(l->conn && !l->conn->listening) { if(l->conn && !l->conn->listening) {
dwr(MSG_INFO," nc_recved(): closing connection\n"); dwr(MSG_INFO," nc_recved(): closing connection\n");
//if(l->tap->lwipstack->_tcp_close(l->conn->pcb) != ERR_OK) if(l->tap->lwipstack->_tcp_close(l->conn->pcb) != ERR_OK)
// dwr(MSG_ERROR," nc_recved(): error while calling tcp_close()\n"); dwr(MSG_ERROR," nc_recved(): error while calling tcp_close()\n");
l->tap->closeConnection(l->conn->sock); l->tap->closeConnection(l->conn->sock);
return ERR_ABRT; return ERR_ABRT;
} }