mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:52:44 +01:00
core: msg: fix msg_try_receive not checking msg_waiters
This commit is contained in:
parent
e0732a5a81
commit
bdfc76a052
@ -298,7 +298,7 @@ static int _msg_receive(msg_t *m, int block)
|
||||
}
|
||||
|
||||
/* no message, fail */
|
||||
if ((!block) && (queue_index == -1)) {
|
||||
if ((!block) && ((!me->msg_waiters.first) && (queue_index == -1))) {
|
||||
restoreIRQ(state);
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user