Skip to content
Snippets Groups Projects
Unverified Commit 1fdad5b1 authored by Martine Lenders's avatar Martine Lenders
Browse files

gnrc_tcp: fix return on closed state

parent f0ae5d2d
No related branches found
No related tags found
No related merge requests found
...@@ -525,7 +525,7 @@ void gnrc_tcp_close(gnrc_tcp_tcb_t *tcb) ...@@ -525,7 +525,7 @@ void gnrc_tcp_close(gnrc_tcp_tcb_t *tcb)
/* Return if connection is closed */ /* Return if connection is closed */
if (tcb->state == FSM_STATE_CLOSED) { if (tcb->state == FSM_STATE_CLOSED) {
mutex_unlock(&(tcb->function_lock)); mutex_unlock(&(tcb->function_lock));
return 0; return;
} }
/* Mark TCB as waiting for incomming messages */ /* Mark TCB as waiting for incomming messages */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment