1
0
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:
Kaspar Schleiser 2016-02-23 14:43:42 +01:00
parent e0732a5a81
commit bdfc76a052

View File

@ -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;
}