mirror of
https://github.com/timvisee/lazymc.git
synced 2025-05-19 12:50:23 -07:00
Fix server infinitly stopping
This commit is contained in:
parent
2d8173aba8
commit
d46f8375c7
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user