mirror of
https://github.com/justinian/jsix.git
synced 2025-12-09 16:04:32 -08:00
[kernel] Fix inverted block flag in mailbox_receive
The `block` flag was operating the opposite of its intended behavior.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user