Skip to content

Commit

Permalink
fix: refine codes
Browse files Browse the repository at this point in the history
  • Loading branch information
halajohn committed Feb 23, 2025
1 parent aa4d577 commit 3908de9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 0 additions & 3 deletions core/src/ten_runtime/app/msg_interface/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ static bool ten_app_handle_msg_default_handler(ten_app_t *self,
ten_value_create_string("Graph not found."), NULL);
ten_msg_clear_and_set_dest_from_msg_src(resp, msg);

ten_msg_dump(msg, NULL, "=-=-= 111 ^m");
ten_msg_dump(resp, NULL, "=-=-= 222 ^m");

if (connection) {
// The following two functions are desired to be called in order --
// call 'ten_connection_migration_state_reset_when_engine_not_found()'
Expand Down
14 changes: 8 additions & 6 deletions core/src/ten_runtime/extension/ten_env/on_xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,10 @@ bool ten_extension_on_configure_done(ten_env_t *self) {
TEN_ASSERT(rc, "Should not happen.");

// Trigger the extension on_init flow.
ten_runloop_post_task_tail(ten_extension_get_attached_runloop(extension),
ten_extension_trigger_on_init_task, extension,
NULL);
// ten_runloop_post_task_tail(ten_extension_get_attached_runloop(extension),
// ten_extension_trigger_on_init_task, extension,
// NULL);
ten_extension_on_init(extension);

ten_error_deinit(&err);

Expand Down Expand Up @@ -263,9 +264,10 @@ bool ten_extension_on_init_done(ten_env_t *self) {
ten_extension_flush_all_pending_msgs_received_in_init_stage(extension);

// Trigger on_start of extension.
ten_runloop_post_task_tail(ten_extension_get_attached_runloop(extension),
ten_extension_trigger_on_start_task, extension,
NULL);
// ten_runloop_post_task_tail(ten_extension_get_attached_runloop(extension),
// ten_extension_trigger_on_start_task, extension,
// NULL);
ten_extension_on_start(extension);

return true;
}
Expand Down

0 comments on commit 3908de9

Please sign in to comment.