Skip to content

Commit 99a6d70

Browse files
After hot deployment redirect every request to the new root
1 parent 4ff292b commit 99a6d70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

maven/src/main/java/org/jboss/shamrock/maven/runner/RuntimeUpdatesHandler.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class RuntimeUpdatesHandler implements HttpHandler {
2727

2828
private static final long TWO_SECONDS = 2000;
2929

30-
private final HttpHandler next;
30+
private volatile HttpHandler next;
3131
private final Path classesDir;
3232
private final Path sourcesDir;
3333
private volatile long nextUpdate;
@@ -69,6 +69,7 @@ public void handleRequest(HttpServerExchange exchange) throws Exception {
6969
try {
7070
if (doScan()) {
7171
//TODO: this should be handled better
72+
next = UndertowDeploymentTemplate.ROOT_HANDLER;
7273
UndertowDeploymentTemplate.ROOT_HANDLER.handleRequest(exchange);
7374
return;
7475
}

0 commit comments

Comments
 (0)