File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
src/main/java/org/cryptomator/linux/update Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 1313import org .purejava .portal .Flatpak ;
1414import org .purejava .portal .UpdatePortal ;
1515import org .purejava .portal .Util ;
16- import org .purejava .portal .rest .UpdateCheckerTask ;
1716import org .slf4j .Logger ;
1817import org .slf4j .LoggerFactory ;
1918
2019import java .util .Collections ;
2120import java .util .List ;
2221import java .util .Map ;
23- import java .util .concurrent .ExecutorService ;
24- import java .util .concurrent .Executors ;
2522
2623@ Priority (1000 )
2724@ CheckAvailability
@@ -51,16 +48,7 @@ public String isUpdateAvailable(DistributionChannel.Value channel) {
5148 LOG .error ("Wrong channel provided: {}" , channel );
5249 return null ;
5350 }
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 ;
51+ return portal .getlatestReleaseFor (APP_NAME );
6452 }
6553
6654 @ Override
You can’t perform that action at this time.
0 commit comments