Change forced show updates process during startup to prevent webUI blocking.

This commit is contained in:
Prinz23 2023-01-17 03:22:21 +01:00 committed by JackDandy
parent e56303798c
commit 05146c0806
2 changed files with 9 additions and 2 deletions

View file

@ -1,4 +1,9 @@
### 3.26.0 (2023-01-12 02:00:00 UTC) ### 3.26.1 (2023-01-25 01:45:00 UTC)
* Change forced show updates process during startup to prevent webUI blocking
### 3.26.0 (2023-01-12 02:00:00 UTC)
* Change bump to major version 3.xx to signal that this branch supports Python3+ only * Change bump to major version 3.xx to signal that this branch supports Python3+ only
* Update Tornado Web Server 6.1.0 (2047e7a) to 6.2.0 (a4f08a3) * Update Tornado Web Server 6.1.0 (2047e7a) to 6.2.0 (a4f08a3)

View file

@ -628,7 +628,9 @@ class SickGear(object):
# Start an update if we're supposed to # Start an update if we're supposed to
if not switching and (self.force_update or sickgear.UPDATE_SHOWS_ON_START): if not switching and (self.force_update or sickgear.UPDATE_SHOWS_ON_START):
sickgear.classes.loading_msg.message = 'Starting a forced show update' sickgear.classes.loading_msg.message = 'Starting a forced show update'
sickgear.show_update_scheduler.action.run() background_start_forced_show_update = threading.Thread(name='STARTUP-FORCE-SHOW-UPDATE',
target=sickgear.show_update_scheduler.action.run)
background_start_forced_show_update.start()
sickgear.classes.loading_msg.message = 'Switching to default web server' sickgear.classes.loading_msg.message = 'Switching to default web server'
time.sleep(2) time.sleep(2)