Skip to content

Commit

Permalink
core/msg: add assert for problem identified in RIOT-OS#10881
Browse files Browse the repository at this point in the history
(cherry picked from commit 82b2362)
  • Loading branch information
kaspar030 authored and miri64 committed Feb 1, 2019
1 parent 84a5c4f commit b3ede8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ static int _msg_receive(msg_t *m, int block)
thread_yield_higher();

/* sender copied message */
assert(sched_active_thread->status != STATUS_RECEIVE_BLOCKED);
}
else {
irq_restore(state);
Expand Down

0 comments on commit b3ede8d

Please sign in to comment.