This commit is contained in:
Rossen Stoyanchev
2016-11-23 13:20:38 -05:00
parent 85a4e5065d
commit 6b9b47ee13
3 changed files with 5 additions and 8 deletions

View File

@@ -67,10 +67,9 @@ public class ReactorHttpServer extends HttpServerSupport implements HttpServer,
@Override
public void start() {
//Should be made thread-safe (compareAndSet..)
// TODO: should be made thread-safe (compareAndSet..)
if (this.running == null) {
this.running = this.reactorServer.newHandler(reactorHandler)
.block();
this.running = this.reactorServer.newHandler(reactorHandler).block();
}
}