diff --git a/oml/item/scan.py b/oml/item/scan.py index 4869ac9..79c5ead 100644 --- a/oml/item/scan.py +++ b/oml/item/scan.py @@ -188,6 +188,8 @@ def run_scan(): file.item.added = file.item.accessed file.item.save() library_items = len(user.library.items) + if state.shutdown: + return if added: trigger_event('change', {}) logger.debug('imported %s unknown books', added)