Skip to content

Commit

Permalink
Merge pull request quarkusio#34849 from geoand/quarkusio#34799
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi authored Jul 19, 2023
2 parents 4efd9d8 + 128c5d0 commit 9192e79
Showing 1 changed file with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1173,22 +1173,23 @@ public void handle(AsyncResult<HttpServer> event) {
} else {
actualHttpPort = actualPort;
}
if (remainingCount.decrementAndGet() == 0) {
//make sure we only set the properties once
if (actualPort != options.getPort()) {
// Override quarkus.http(s)?.(test-)?port
String schema;
if (https) {
clearHttpsProperty = true;
schema = "https";
} else {
clearHttpProperty = true;
actualHttpPort = actualPort;
schema = "http";
}
portSystemProperties = new PortSystemProperties();
portSystemProperties.set(schema, actualPort, launchMode);
if (actualPort != options.getPort()) {
// Override quarkus.http(s)?.(test-)?port
String schema;
if (https) {
clearHttpsProperty = true;
schema = "https";
} else {
clearHttpProperty = true;
actualHttpPort = actualPort;
schema = "http";
}
portSystemProperties = new PortSystemProperties();
portSystemProperties.set(schema, actualPort, launchMode);
}

if (remainingCount.decrementAndGet() == 0) {
//make sure we only complete once
startFuture.complete(null);
}

Expand Down

0 comments on commit 9192e79

Please sign in to comment.