Skip to content

Commit

Permalink
Issue #9344, unconditional interruption was fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii0lomakin committed Jul 22, 2020
1 parent 23fe140 commit c47a54f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -841,12 +841,13 @@ public boolean check(final boolean verbose, final OCommandOutputListener listene
private void checkIfThreadIsBlocked() {
final Thread thread = Thread.currentThread();
if (blockedThreads.contains(thread)) {
thread.interrupt();

throw new OStorageException(
"Operations on thread '"
+ thread
+ "' are blocked and can not be performed. Thread will be interrupted.");
}
thread.interrupt();
}

@Override
Expand Down

0 comments on commit c47a54f

Please sign in to comment.