diff --git a/src/main/java/org/traccar/web/client/controller/CommandController.java b/src/main/java/org/traccar/web/client/controller/CommandController.java index 7b89c279..1c162934 100644 --- a/src/main/java/org/traccar/web/client/controller/CommandController.java +++ b/src/main/java/org/traccar/web/client/controller/CommandController.java @@ -39,7 +39,7 @@ public void run() { new RequestBuilder(RequestBuilder.GET, "api").sendRequest(null, new RequestCallback() { @Override public void onResponseReceived(Request request, Response response) { - ApplicationContext.getInstance().setBackendApiAvailable(response.getStatusCode() == 302); + ApplicationContext.getInstance().setBackendApiAvailable(response.getStatusCode() != 404); } @Override