core/msg: add assert for problem identified in #10881

This commit is contained in:
Kaspar Schleiser 2019-01-28 17:14:16 +01:00
parent 62bb4cc526
commit 82b2362bc3

View File

@ -330,6 +330,7 @@ static int _msg_receive(msg_t *m, int block)
thread_yield_higher(); thread_yield_higher();
/* sender copied message */ /* sender copied message */
assert(sched_active_thread->status != STATUS_RECEIVE_BLOCKED);
} }
else { else {
irq_restore(state); irq_restore(state);