Merge pull request #7069 from miri64/gnrc_tcp/bug/fix-close-return
gnrc_tcp: fix return on closed state
This commit is contained in:
commit
db51861b3e
@ -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 */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user