Skip to content

Commit

Permalink
fix blocking when no task
Browse files Browse the repository at this point in the history
  • Loading branch information
Thaumy committed Dec 13, 2024
1 parent 5337002 commit 6780c94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ async fn async_tasks(remote_cfg: RemoteConfig, mut task_rt: TaskRuntime) -> Resu
let rpc_task = async move {
if !remote_cfg.rpc.enable {
let handle = task_rt.spawn(None)?;
drop(task_rt);
handle.join().expect("TaskRuntime has panicked");
return Ok(());
}
Expand Down

0 comments on commit 6780c94

Please sign in to comment.