diff --git a/src/core/botmodules.rs b/src/core/botmodules.rs index f4dfb18..0dba823 100644 --- a/src/core/botmodules.rs +++ b/src/core/botmodules.rs @@ -1223,10 +1223,15 @@ impl Routine { mutlock.parent_params.curr_act = mutlock.self_act_ar.to_owned().unwrap(); } + dbg!("before"); + + // `self_ar` is the routine you want to read in the execbody i think, but its used to call that execbody. + // So execbody waits for itself to finish. (self_ar.read().await.exec_body)( self_ar.read().await.parent_params.clone() ).await; - + + dbg!("after"); // (self.exec_body)( // self.parent_params.clone() // ).await;