mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fixed bug where update would not happen once server was shut down if server was running when button was pressed.
This commit is contained in:
parent
a3be2cd2e2
commit
c48fa435fe
@ -348,7 +348,7 @@ class Server:
|
|||||||
if self.check_running():
|
if self.check_running():
|
||||||
logger.info("Server with PID %s is running. Sending shutdown command", self.PID)
|
logger.info("Server with PID %s is running. Sending shutdown command", self.PID)
|
||||||
self.stop_threaded_server()
|
self.stop_threaded_server()
|
||||||
else:
|
|
||||||
backup_dir = os.path.join(self.settings['path'], 'crafty_executable_backups')
|
backup_dir = os.path.join(self.settings['path'], 'crafty_executable_backups')
|
||||||
#checks if backup directory already exists
|
#checks if backup directory already exists
|
||||||
if os.path.isdir(backup_dir):
|
if os.path.isdir(backup_dir):
|
||||||
|
Loading…
Reference in New Issue
Block a user