ignore return code from netconn_delete, fix #2096

This commit is contained in:
devsaurus 2017-09-12 22:20:26 +02:00
parent c117092da6
commit b2f09da2e2
1 changed files with 2 additions and 4 deletions

View File

@ -347,10 +347,8 @@ static void lnet_netconn_callback(struct netconn *netconn, enum netconn_evt evt,
static err_t netconn_close_wa(struct netconn *conn) {
err_t err = netconn_close(conn);
if (err == ERR_OK) {
err = netconn_delete(conn);
if (err == ERR_OK) {
netconn_free(conn);
}
netconn_delete(conn);
netconn_free(conn);
}
return err;