Skip to content

Commit

Permalink
Merge pull request #84 from Suwayomi/start-error
Browse files Browse the repository at this point in the history
Fix connection check
  • Loading branch information
aless2003 authored Dec 6, 2023
2 parents 8009dad + 2f57afb commit f3ec898
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugins {
}

group = 'online.hatsunemiku'
version = '1.0.2'
version = '1.0.3'
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.component.progressbar.ProgressBar;
import com.vaadin.flow.router.Route;
import feign.FeignException;
import java.util.Optional;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
Expand Down Expand Up @@ -127,7 +128,7 @@ private void updateUi() {
}

private void checkConnection() {
String url = settingsService.getSettings().getUrl() + "/api/v1/meta";
String url = settingsService.getSettings().getUrl() + "/api/v1/settings/about";

try {
var response = client.getForEntity(url, Void.class);
Expand All @@ -147,7 +148,7 @@ private void checkConnection() {

executor.shutdownNow();
}
} catch (Exception e) {
} catch (FeignException e) {
logger.debug("No Connection to Server yet", e);
}
}
Expand Down

0 comments on commit f3ec898

Please sign in to comment.