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

@@ -66,7 +66,7 @@ public class ShutdownEndpoint extends AbstractEndpoint<Map<String, Object>>
Thread.sleep(500L);
}
catch (InterruptedException ex) {
// Swallow exception and continue
Thread.currentThread().interrupt();
}
ShutdownEndpoint.this.context.close();
}