[kernel] Fix inverted block flag in mailbox_receive

The `block` flag was operating the opposite of its intended behavior.
This commit is contained in:
Justin C. Miller
2022-09-11 14:14:39 -07:00
parent 7fd39e91c1
commit 5c26308b23

View File

@@ -133,7 +133,7 @@ mailbox_receive(
if (!self->receive(msg, block)) {
// No message received
return self->closed() ? j6_status_closed :
block ? j6_status_would_block :
!block ? j6_status_would_block :
j6_err_unexpected;
}