From d251db8d1aaadc29f5f466c38d9289519e3246bb Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Wed, 10 Oct 2018 16:42:46 -0500 Subject: [PATCH] Fix resume sync behavior Allow to complete the startup sync in the event user backs out of resume sync --- resources/lib/library.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/lib/library.py b/resources/lib/library.py index a2d501d4..5fa4fd13 100644 --- a/resources/lib/library.py +++ b/resources/lib/library.py @@ -298,8 +298,16 @@ class Library(threading.Thread): Views().get_nodes() try: - if get_sync()['Libraries'] or not settings('SyncInstallRunDone.bool'): + if get_sync()['Libraries']: + try: + FullSync(self) + Views().get_nodes() + except Exception as error: + LOG.error(error) + + elif not settings('SyncInstallRunDone.bool'): + FullSync(self) Views().get_nodes()