Skip to content

Commit f3ec3fe

Browse files
committed
fixes #2724
1 parent c8a48b0 commit f3ec3fe

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

restcomm/restcomm.commons/src/main/java/org/restcomm/connect/commons/util/JBossConnectorDiscover.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ public HttpConnectorList findConnectors() throws MalformedObjectNameException, N
6464
LOG.info("JBoss Connectors found:" + jbossObjs.size());
6565
for (ObjectName obj : jbossObjs) {
6666
Boolean bound = (Boolean) mbs.getAttribute(obj, "bound");
67-
String scheme = mbs.getAttribute(obj, "name").toString().replaceAll("\"", "");
68-
Integer port = (Integer) mbs.getAttribute(obj, "boundPort");
69-
String address = ((String) mbs.getAttribute(obj, "boundAddress")).replaceAll("\"", "");
70-
if (LOG.isInfoEnabled()) {
71-
LOG.info("Jboss Http Connector: " + scheme + "://" + address + ":" + port);
72-
}
7367
if (bound) {
68+
String scheme = mbs.getAttribute(obj, "name").toString().replaceAll("\"", "");
69+
Integer port = (Integer) mbs.getAttribute(obj, "boundPort");
70+
String address = ((String) mbs.getAttribute(obj, "boundAddress")).replaceAll("\"", "");
71+
if (LOG.isInfoEnabled()) {
72+
LOG.info("Jboss Http Connector: " + scheme + "://" + address + ":" + port);
73+
}
7474
HttpConnector httpConnector = new HttpConnector(scheme, address, port, scheme.equalsIgnoreCase("https"));
7575
endPoints.add(httpConnector);
7676
} else {

0 commit comments

Comments
 (0)