Skip to content

Commit

Permalink
defaultPort can not be null, delete unuse code. (apache#4480)
Browse files Browse the repository at this point in the history
  • Loading branch information
TingSky authored and rolandhe committed Sep 9, 2019
1 parent 1cabc9f commit e161c31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ private Integer findConfigedPorts(ProtocolConfig protocolConfig, String name, Ma
if (portToBind == null || portToBind == 0) {
portToBind = defaultPort;
}
if (portToBind == null || portToBind <= 0) {
if (portToBind <= 0) {
portToBind = getRandomPort(name);
if (portToBind == null || portToBind < 0) {
portToBind = getAvailablePort(defaultPort);
Expand Down

0 comments on commit e161c31

Please sign in to comment.