fix server not resetting VM on brush eval request
This commit is contained in:
parent
6e88999662
commit
4ba7e25510
1 changed files with 1 additions and 4 deletions
|
|
@ -154,6 +154,7 @@ impl Haku {
|
||||||
.brush
|
.brush
|
||||||
.ok_or_eyre("brush is not compiled and ready to be used")?;
|
.ok_or_eyre("brush is not compiled and ready to be used")?;
|
||||||
|
|
||||||
|
self.vm.restore_image(&self.vm_image);
|
||||||
self.vm.apply_defs(&self.defs);
|
self.vm.apply_defs(&self.defs);
|
||||||
|
|
||||||
let closure_id = self
|
let closure_id = self
|
||||||
|
|
@ -189,10 +190,6 @@ impl Haku {
|
||||||
result.context("an exception occurred while rendering the scribble")
|
result.context("an exception occurred while rendering the scribble")
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn reset_vm(&mut self) {
|
|
||||||
self.vm.restore_image(&self.vm_image);
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn cont(&self, trampoline: &Trampoline) -> Cont {
|
pub fn cont(&self, trampoline: &Trampoline) -> Cont {
|
||||||
trampoline.cont(&self.vm)
|
trampoline.cont(&self.vm)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue