Fix server infinitly stopping

This commit is contained in:
[object Object] 2022-12-28 12:40:09 -08:00
parent 2d8173aba8
commit d46f8375c7
No known key found for this signature in database
GPG Key ID: F9ECDF22D7D28727

View File

@ -601,12 +601,21 @@ async fn stop_server_signal(config: &Config, server: &Server) -> bool {
} }
// Update from starting/started to stopping // Update from starting/started to stopping
/* TODO uncomment this and add a config option
server server
.update_state_from(Some(State::Starting), State::Stopping, config) .update_state_from(Some(State::Starting), State::Stopping, config)
.await; .await;
server server
.update_state_from(Some(State::Started), State::Stopping, config) .update_state_from(Some(State::Started), State::Stopping, config)
.await; .await;
*/
server
.update_state_from(Some(State::Starting), State::Stopped, config)
.await;
server
.update_state_from(Some(State::Started), State::Stopped, config)
.await;
true true
} }