mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fix blocking message detection clause in two places
This commit is contained in:
parent
e13bb426e3
commit
dacc38808e
1 changed files with 2 additions and 2 deletions
|
|
@ -547,7 +547,7 @@ fn xmain() -> ! {
|
|||
sockets.remove(handle);
|
||||
if let Some(response) = msg.body.memory_message_mut() {
|
||||
response.buf.as_slice_mut::<u8>()[0] = 0;
|
||||
} else if !msg.body.is_blocking() && msg.body.is_blocking() {
|
||||
} else if !msg.body.has_memory() && msg.body.is_blocking() {
|
||||
xous::return_scalar(msg.sender, 0).ok();
|
||||
}
|
||||
}
|
||||
|
|
@ -1071,7 +1071,7 @@ fn xmain() -> ! {
|
|||
sockets.remove(handle);
|
||||
if let Some(response) = msg.body.memory_message_mut() {
|
||||
response.buf.as_slice_mut::<u8>()[0] = 0;
|
||||
} else if msg.body.is_blocking() {
|
||||
} else if !msg.body.has_memory() && msg.body.is_blocking() {
|
||||
xous::return_scalar(msg.sender, 0).ok();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue