mirror of
https://github.com/chatmail/core.git
synced 2026-05-14 20:36:30 +03:00
Re-add info message using elapsed stopping time
This commit is contained in:
@@ -526,6 +526,9 @@ impl Context {
|
|||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
drop_rx.await.ok();
|
drop_rx.await.ok();
|
||||||
let mut s = context.running_state.write().await;
|
let mut s = context.running_state.write().await;
|
||||||
|
if let RunningState::ShallStop { request } = *s {
|
||||||
|
info!(context, "Ongoing stopped in {:?}", request.elapsed());
|
||||||
|
}
|
||||||
*s = RunningState::Stopped;
|
*s = RunningState::Stopped;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user