diff --git a/src/client.rs b/src/client.rs index 15816f4b..fc7c608f 100644 --- a/src/client.rs +++ b/src/client.rs @@ -35,7 +35,7 @@ pub async fn client_main( thread_client.task_request_name = Some(thread_task_name.to_string()); } // Invoke the task function. - function(&mut thread_client); + function(&mut thread_client).await; } } } @@ -139,7 +139,7 @@ pub async fn client_main( thread_client.task_request_name = Some(thread_task_name.to_string()); } // Invoke the task function. - function(&mut thread_client); + function(&mut thread_client).await; } } }