Fix incorrect state after unfreezing process

This commit is contained in:
timvisee 2023-01-30 18:18:28 +01:00
parent 835ca62c06
commit aa1a74682e
No known key found for this signature in database
GPG Key ID: B8DB720BC383E172

View File

@ -659,10 +659,10 @@ async fn unfreeze_server_signal(config: &Config, server: &Server) -> bool {
}
server
.update_state_from(Some(State::Stopped), State::Started, config)
.update_state_from(Some(State::Stopping), State::Starting, config)
.await;
server
.update_state_from(Some(State::Starting), State::Started, config)
.update_state_from(Some(State::Stopped), State::Starting, config)
.await;
true