refactor(statemachine): 🔇 remove debug

code
This commit is contained in:
jay 2021-04-05 17:43:48 +05:00
parent e2ae7e5ad2
commit 6e1ef5aada

View File

@ -262,9 +262,6 @@ function runSM(name = getSM(undefined, undefined, true), player // or supervisor
cfg.statemachine.running[machine.id] = service; cfg.statemachine.running[machine.id] = service;
cfg.statemachine.recent = machine; cfg.statemachine.recent = machine;
service.start(); service.start();
// // TODO check if idle state is different (maybe?)
console.log("sm run", service.state.value === machine.initialState.value, service.state);
console.log("sm run", service.state !== machine.initialState, machine.initialState);
// return machine // return machine
return service; return service;
} }