mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc_tcp: fix return on closed state
This commit is contained in:
parent
f0ae5d2dd8
commit
1fdad5b184
@ -525,7 +525,7 @@ void gnrc_tcp_close(gnrc_tcp_tcb_t *tcb)
|
||||
/* Return if connection is closed */
|
||||
if (tcb->state == FSM_STATE_CLOSED) {
|
||||
mutex_unlock(&(tcb->function_lock));
|
||||
return 0;
|
||||
return;
|
||||
}
|
||||
|
||||
/* Mark TCB as waiting for incomming messages */
|
||||
|
Loading…
Reference in New Issue
Block a user