Skip to content

Commit 8c0bcd8

Browse files
committed
Kill the tasks using the Coordinator before shutting it down
1 parent 5970f7e commit 8c0bcd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/server_axum/websocket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,12 @@ impl CoordinatorManager {
259259
async fn shutdown(mut self) -> CoordinatorManagerResult<()> {
260260
use coordinator_manager_error::*;
261261

262+
self.tasks.shutdown().await;
262263
Arc::into_inner(self.coordinator)
263264
.context(OutstandingCoordinatorShutdownSnafu)?
264265
.shutdown()
265266
.await
266267
.context(ShutdownSnafu)?;
267-
self.tasks.shutdown().await;
268268

269269
Ok(())
270270
}

0 commit comments

Comments
 (0)