Merge pull request elastic/elasticsearch#2969 from danielmitterdorfer/fix-interruption

Restore interruption flag correctly in life cycle service

Original commit: elastic/x-pack-elasticsearch@fe73226e47
This commit is contained in:
Daniel Mitterdorfer 2016-08-03 17:03:33 +02:00 committed by GitHub
commit 196f74984c
1 changed files with 1 additions and 1 deletions

View File

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