Reset thread's interrupted flag when catching InterruptedException

Closes gh-6360
This commit is contained in:
Andy Wilkinson
2016-07-11 16:42:36 +01:00
parent e53d3167ab
commit 4963cfd67b
9 changed files with 12 additions and 7 deletions

View File

@@ -167,6 +167,7 @@ public class StartMojo extends AbstractRunMojo {
this.lock.wait(wait);
}
catch (InterruptedException ex) {
Thread.currentThread().interrupt();
throw new IllegalStateException(
"Interrupted while waiting for Spring Boot app to start.");
}
@@ -275,6 +276,7 @@ public class StartMojo extends AbstractRunMojo {
this.lock.wait(wait);
}
catch (InterruptedException ex) {
Thread.currentThread().interrupt();
throw new IllegalStateException(
"Interrupted while waiting for Spring Boot app to start.");
}