Skip to content

Commit

Permalink
Stop indexing on cancel (#8039)
Browse files Browse the repository at this point in the history
Fixes JabRef#516

Co-authored-by: Benedikt Tutzer <benedikt.tutzer@tuwien.ac.at>
  • Loading branch information
btut and Benedikt Tutzer authored Aug 31, 2021
1 parent 577f51c commit 96a4bb0
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 96a4bb0

Please sign in to comment.