Skip to content

Commit 51ed6db

Browse files
committed
Use getlatestReleaseFor
1 parent 7214218 commit 51ed6db

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/main/java/org/cryptomator/linux/update/FlatpakUpdater.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,7 @@ public String isUpdateAvailable(DistributionChannel.Value channel) {
5151
LOG.error("Wrong channel provided: {}", channel);
5252
return null;
5353
}
54-
try (ExecutorService executor = Executors.newFixedThreadPool(10)) {
55-
var task = new UpdateCheckerTask(APP_NAME);
56-
executor.submit(task);
57-
try {
58-
return task.get();
59-
} catch (Exception e) {
60-
LOG.error(e.toString(), e.getCause());
61-
}
62-
}
63-
return null;
54+
return portal.getlatestReleaseFor(APP_NAME);
6455
}
6556

6657
@Override

0 commit comments

Comments
 (0)