1
0
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:
Martine Lenders 2017-05-17 18:39:38 +02:00
parent f0ae5d2dd8
commit 1fdad5b184
No known key found for this signature in database
GPG Key ID: 8E97A9FE55F25D62

View File

@ -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 */