Fix live-enable config option not working

This commit is contained in:
Blue (Lukas Rieger) 2020-08-16 14:47:21 +02:00
parent 1716098622
commit 724d553a64

View File

@ -61,7 +61,7 @@ public LiveAPIRequestHandler(ServerInterface server, LiveAPISettings config, Htt
@Override
public HttpResponse handle(HttpRequest request) {
if (!config.isLiveUpdatesEnabled()) this.notFoundHandler.handle(request);
if (!config.isLiveUpdatesEnabled()) return this.notFoundHandler.handle(request);
HttpRequestHandler handler = liveAPIRequests.get(request.getPath());
if (handler != null) return handler.handle(request);