Skip to content

Commit

Permalink
Stop indexing on cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Tutzer committed Aug 31, 2021
1 parent df83c9d commit b73b974
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ protected Void call() throws Exception {
isRunning = true;
}
updateProgress();
while (!taskQueue.isEmpty()) {
while (!taskQueue.isEmpty() && !isCanceled()) {
taskQueue.poll().run();
numOfIndexedFiles++;
updateProgress();
Expand Down

0 comments on commit b73b974

Please sign in to comment.