Restore interruption flag correctly in life cycle service

Original commit: elastic/x-pack-elasticsearch@c9b0754811
This commit is contained in:
Daniel Mitterdorfer 2016-07-29 11:08:22 +02:00
parent 59cb8f2271
commit a8017c4968
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ public class WatcherLifeCycleService extends AbstractComponent implements Cluste
try { try {
latch.await(); latch.await();
} catch (InterruptedException e) { } catch (InterruptedException e) {
Thread.interrupted(); Thread.currentThread().interrupt();
} }
} }