mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix update logic
This commit is contained in:
parent
9a7a1cc5d8
commit
6559112e1b
@ -1140,8 +1140,6 @@ class ServerInstance:
|
|||||||
logger.critical(
|
logger.critical(
|
||||||
f"Failed to download bedrock executable for update \n{e}"
|
f"Failed to download bedrock executable for update \n{e}"
|
||||||
)
|
)
|
||||||
downloaded = True
|
|
||||||
return
|
|
||||||
|
|
||||||
while self.stats_helper.get_server_stats()["updating"]:
|
while self.stats_helper.get_server_stats()["updating"]:
|
||||||
if downloaded and not self.is_backingup:
|
if downloaded and not self.is_backingup:
|
||||||
@ -1193,7 +1191,7 @@ class ServerInstance:
|
|||||||
)
|
)
|
||||||
if was_started:
|
if was_started:
|
||||||
self.start_server()
|
self.start_server()
|
||||||
else:
|
elif not downloaded and not self.is_backingup:
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
server_users = PermissionsServers.get_server_user_list(self.server_id)
|
server_users = PermissionsServers.get_server_user_list(self.server_id)
|
||||||
for user in server_users:
|
for user in server_users:
|
||||||
|
Loading…
Reference in New Issue
Block a user