mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Don't use a while loop to constantly write changes to DB.
This commit is contained in:
parent
7d5a7658e2
commit
001a8ee9c3
@ -448,10 +448,8 @@ class Server:
|
||||
#boolean returns true for false for success
|
||||
downloaded = helper.download_file(self.settings['executable_update_url'], current_executable)
|
||||
|
||||
if downloaded:
|
||||
while self.is_backingup:
|
||||
db_helper.set_update(self.server_id, True)
|
||||
pass
|
||||
if downloaded and not self.is_backingup:
|
||||
|
||||
logger.info("Executable updated successfully. Starting Server")
|
||||
|
||||
db_helper.set_update(self.server_id, False)
|
||||
|
Loading…
Reference in New Issue
Block a user