Content server viewer: Fix CPU consumption when searching even after all matches are found

This commit is contained in:
Kovid Goyal 2022-12-11 21:36:52 +05:30
parent 7d9cbd81b8
commit ad6252ac41
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -182,7 +182,6 @@ def search_in_text_of(name):
def queue_next_spine_item(spine_idx, allow_current_name):
spine_idx %= wc.current_book.spine.length
name = wc.current_book.spine[spine_idx]
if not name or (not allow_current_name and name is wc.current_query.current_name):
send_search_complete()