Skip to content

Commit

Permalink
Removed restart loop on no commands found
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Nov 21, 2023
1 parent 3d8b8a3 commit fb82ab8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -3846,15 +3846,11 @@ def run_search_loop(self) -> NoReturn:
if years.index(self.search_current_year) != years_count - 1:
years_index += 1
self.search_current_year = years[years_index]
elif (
datetime.now() >= (timer + loop_timer)
) or self.arr_db_query_commands_count() == 0:
elif datetime.now() >= (timer + loop_timer):
self.refresh_download_queue()
self.force_grab()
raise RestartLoopException
elif (
datetime.now() >= (timer + loop_timer)
) or self.arr_db_query_commands_count() == 0:
elif datetime.now() >= (timer + loop_timer):
self.refresh_download_queue()
self.force_grab()
raise RestartLoopException
Expand Down

0 comments on commit fb82ab8

Please sign in to comment.