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:
Andrew McManus 2021-07-24 21:32:16 -04:00
parent a3be2cd2e2
commit c48fa435fe

View File

@ -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):