diff --git a/jpos/src/main/java/org/jpos/q2/Q2.java b/jpos/src/main/java/org/jpos/q2/Q2.java index 6fad9270cd..c8248545e3 100644 --- a/jpos/src/main/java/org/jpos/q2/Q2.java +++ b/jpos/src/main/java/org/jpos/q2/Q2.java @@ -437,7 +437,8 @@ public void run () { shuttingDown = true; shutdown.countDown(); if (q2Thread != null) { - log.info ("shutting down (join/" + SHUTDOWN_TIMEOUT + ")"); + if (shutdownHookDelay > 0) + log.info ("shutting down (join/" + SHUTDOWN_TIMEOUT + ")"); try { q2Thread.join (SHUTDOWN_TIMEOUT); } catch (InterruptedException ignored) {