Fix setting interrupot status after shutdown
This commit is contained in:
parent
9445847447
commit
c3e2980bd4
1 changed files with 2 additions and 2 deletions
|
|
@ -306,10 +306,10 @@ public class PrefetchRecordsPublisher implements RecordsPublisher {
|
|||
}
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
// Preserve interrupt status
|
||||
Thread.currentThread().interrupt();
|
||||
// (Re-)Cancel if current thread also interrupted
|
||||
executorService.shutdownNow();
|
||||
// Preserve interrupt status
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
started = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue