proxmox-rest-server: avoid useless call to request_shutdown
Also avoid unsafe code.
This commit is contained in:
1 parent
450105b0c3
commit
a0ffd4a413
2 files changed
+8
-6
No files matched your search
@@ -274,7 +274,9 @@ where
|
||||
|
||||
let finish_future = match future::select(server_future, shutdown_future).await {
|
||||
Either::Left((_, _)) => {
|
||||
crate::request_shutdown(); // make sure we are in shutdown mode
|
||||
if !crate::shutdown_requested() {
|
||||
crate::request_shutdown(); // make sure we are in shutdown mode
|
||||
}
|
||||
None
|
||||
}
|
||||
Either::Right((_, server_future)) => Some(server_future),
|
||||
|
||||
Reference in new issue
Block a user