Skip to content

Commit

Permalink
[RESTEASY-2564] Use a single thread executor instead of the default e…
Browse files Browse the repository at this point in the history
…xecutor for a more graceful shutdown.
  • Loading branch information
jamezp committed Apr 23, 2020
1 parent 725481a commit 0791385
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -65,7 +65,8 @@ public SunHttpJaxrsServer start()
public void stop()
{
runtimePort = -1;
httpServer.stop(0);
// Stop with an arbitrary 10 second delay. This was taken from the VertxJaxrsServer.
httpServer.stop(10);
context.cleanup();

if (deployment != null) {
Expand Down

0 comments on commit 0791385

Please sign in to comment.