Browse Source

nc_recved() connection closure change

Joseph Henry 9 years ago
parent
commit
1e2c434ae8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      netcon/NetconEthernetTap.cpp

+ 2 - 2
netcon/NetconEthernetTap.cpp

@@ -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)
-			//	dwr(MSG_ERROR," nc_recved(): error while calling tcp_close()\n");
+			if(l->tap->lwipstack->_tcp_close(l->conn->pcb) != ERR_OK)
+				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;
 		}
 		}