fix server not resetting VM on brush eval request
This commit is contained in:
parent
6e88999662
commit
4ba7e25510
|
@ -154,6 +154,7 @@ impl Haku {
|
|||
.brush
|
||||
.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);
|
||||
|
||||
let closure_id = self
|
||||
|
@ -189,10 +190,6 @@ impl Haku {
|
|||
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 {
|
||||
trampoline.cont(&self.vm)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue