mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
add quit opcode to Net
This commit is contained in:
parent
ab3e05764e
commit
afeae79d45
2 changed files with 7 additions and 4 deletions
|
|
@ -25,12 +25,12 @@ pub(crate) enum Opcode {
|
|||
|
||||
/// [Internal] com llio interrupt callback
|
||||
ComInterrupt,
|
||||
|
||||
/// [Internal] run the network stack code
|
||||
NetPump,
|
||||
|
||||
/// Suspend/resume callback
|
||||
SuspendResume,
|
||||
/// Quit the server
|
||||
Quit
|
||||
}
|
||||
|
||||
#[derive(Debug, num_derive::FromPrimitive, num_derive::ToPrimitive)]
|
||||
|
|
|
|||
|
|
@ -646,9 +646,12 @@ fn xmain() -> ! {
|
|||
// handle an suspend/resume state stuff here. right now, it's a NOP
|
||||
susres.suspend_until_resume(token).expect("couldn't execute suspend/resume");
|
||||
}),
|
||||
Some(Opcode::Quit) => {
|
||||
log::warn!("quit received");
|
||||
break;
|
||||
}
|
||||
None => {
|
||||
log::error!("couldn't convert opcode");
|
||||
break
|
||||
log::error!("couldn't convert opcode: {}", msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue