lint
This commit is contained in:
parent
66cfcce29d
commit
60d5d9f1f1
1 changed files with 4 additions and 6 deletions
|
|
@ -231,15 +231,13 @@ impl Service {
|
|||
let engine = engine.lock().await;
|
||||
if let Some(session) = engine.current_session() {
|
||||
info!(session_id = %session.plan.session_id, "Stopping active session");
|
||||
if let Some(handle) = &session.host_handle {
|
||||
if let Err(e) = host.stop(handle, HostStopMode::Graceful {
|
||||
if let Some(handle) = &session.host_handle && let Err(e) = host.stop(handle, HostStopMode::Graceful {
|
||||
timeout: Duration::from_secs(5),
|
||||
}).await {
|
||||
warn!(error = %e, "Failed to stop session gracefully");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Log shutdown
|
||||
if let Err(e) = store.append_audit(AuditEvent::new(AuditEventType::ServiceStopped)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue