Skip to content
Snippets Groups Projects
Commit db51861b authored by Thomas Eichinger's avatar Thomas Eichinger Committed by GitHub
Browse files

Merge pull request #7069 from miri64/gnrc_tcp/bug/fix-close-return

gnrc_tcp: fix return on closed state
parents f0ae5d2d 1fdad5b1
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.
Finish editing this message first!
Please register or to comment