Browse Source

core: msg: fix msg_try_receive not checking msg_waiters

pr/gpio
Kaspar Schleiser 7 years ago
parent
commit
bdfc76a052
  1. 2
      core/msg.c

2
core/msg.c

@ -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…
Cancel
Save