Permalink
Browse files

only cleanup JMX if JMX is used

  • Loading branch information...
1 parent 2a70301 commit 59e47f3f56c00a65a3c39169de2ced09650a73cf @leahxschmidt leahxschmidt committed with leahxschmidt Dec 18, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/org/littleshoot/proxy/HttpRequestHandler.java
@@ -495,7 +495,9 @@ public void operationComplete(final ChannelFuture wcf)
processRequest(ctx, me);
}
}
- cleanupJmx();
+ if (LittleProxyConfig.isUseJmx()) {
+ cleanupJmx();
+ }
}
}

0 comments on commit 59e47f3

Please sign in to comment.