Skip to content

Commit 1bbecb1

Browse files
authored
Merge pull request #454 from zxy0728/master
If multi MA start in the same port, the failure MA will be exit
2 parents feaa4bf + 764f673 commit 1bbecb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

com.creditease.uav.base/src/main/java/com/creditease/agent/spi/AbstractHttpServiceComponent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public void start(Executor executor, int port, int backlog, boolean forceExit) {
181181
server = HttpServer.create(isa, backlog);
182182

183183
}
184-
catch (IOException e) {
184+
catch (Exception e) {
185185

186186
log.err(this, "HttpServiceComponent[" + this.cName + "] for feature[" + this.feature + "] starts FAIL.", e);
187187

com.creditease.uav.base/src/main/java/com/creditease/agent/spi/AbstractHttpServiceComponent2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ public void start(int port, int backlog, int listenThreadCount, int handleThread
373373
+ "] started SUCCESS: port=" + this.port);
374374
}
375375
}
376-
catch (InterruptedException e) {
376+
catch (Exception e) {
377377
log.err(this, "HttpServiceComponent[" + this.cName + "] for feature[" + this.feature + "] starts FAIL.", e);
378378

379379
if (forceExit == true) {

0 commit comments

Comments
 (0)