diff --git a/ambry-server/src/main/java/com.github.ambry.server/AmbryServer.java b/ambry-server/src/main/java/com.github.ambry.server/AmbryServer.java index 547873532f..32a6eb451a 100644 --- a/ambry-server/src/main/java/com.github.ambry.server/AmbryServer.java +++ b/ambry-server/src/main/java/com.github.ambry.server/AmbryServer.java @@ -221,12 +221,12 @@ public void shutdown() { if (statsManager != null) { statsManager.shutdown(); } - if (requestHandlerPool != null) { - requestHandlerPool.shutdown(); - } if (networkServer != null) { networkServer.shutdown(); } + if (requestHandlerPool != null) { + requestHandlerPool.shutdown(); + } if (replicationManager != null) { replicationManager.shutdown(); }