diff --git a/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/PassThroughHttpListener.java b/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/PassThroughHttpListener.java index 956c0557f9..1d4ddf2a6a 100644 --- a/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/PassThroughHttpListener.java +++ b/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/PassThroughHttpListener.java @@ -445,7 +445,6 @@ public void stop() throws AxisFault { } } serviceTracker.stop(); - handler.stop(); } catch (IOException e) { handleException("Error shutting down " + namePrefix + " listening IO reactor", e); } catch (InterruptedException e) { @@ -461,6 +460,7 @@ public void destroy() { getAxisConfiguration().getObserversList().remove(axisObserver);*/ // serviceTracker.stop(); sourceConfiguration.getMetrics().destroy(); + handler.stop(); } /**