Clean up handle initialized event return func

This commit is contained in:
Anthony Eid
2025-02-18 01:47:44 -05:00
parent 286532e439
commit df6c3649df

View File

@@ -522,17 +522,18 @@ impl Session {
.unwrap_or_default()
{
if let Some(adapter) = this.adapter_client() {
cx.background_spawn(async move {
adapter.request::<dap::requests::ConfigurationDone>(
dap::ConfigurationDoneArguments,
);
})
} else {
Task::ready(())
return cx.background_spawn(async move {
adapter
.request::<dap::requests::ConfigurationDone>(
dap::ConfigurationDoneArguments,
)
.await
.log_err();
});
}
} else {
Task::ready(())
}
Task::ready(())
})
})
.detach_and_log_err(cx);