mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-19 00:16:29 +08:00
Rust: don't panic when loading a kernel twice in same session.
This commit is contained in:
parent
6b2789e3db
commit
84214ab0d1
@ -351,7 +351,10 @@ fn process_kern_message(waiter: Waiter,
|
|||||||
|
|
||||||
kern::RunFinished => {
|
kern::RunFinished => {
|
||||||
try!(kern_acknowledge());
|
try!(kern_acknowledge());
|
||||||
|
|
||||||
|
kernel::stop();
|
||||||
session.kernel_state = KernelState::Absent;
|
session.kernel_state = KernelState::Absent;
|
||||||
|
|
||||||
return Ok(true)
|
return Ok(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user