stop scan on shutdown
This commit is contained in:
parent
5a8e08b2c2
commit
028415c090
1 changed files with 2 additions and 0 deletions
|
@ -188,6 +188,8 @@ def run_scan():
|
||||||
file.item.added = file.item.accessed
|
file.item.added = file.item.accessed
|
||||||
file.item.save()
|
file.item.save()
|
||||||
library_items = len(user.library.items)
|
library_items = len(user.library.items)
|
||||||
|
if state.shutdown:
|
||||||
|
return
|
||||||
if added:
|
if added:
|
||||||
trigger_event('change', {})
|
trigger_event('change', {})
|
||||||
logger.debug('imported %s unknown books', added)
|
logger.debug('imported %s unknown books', added)
|
||||||
|
|
Loading…
Reference in a new issue