Make update check more robust

This commit is contained in:
crschnick 2023-08-22 10:03:32 +00:00
parent 0812ae3113
commit 6a8707bfcf

View file

@ -207,6 +207,10 @@ public abstract class UpdateHandler {
// Check if prepared update is still the latest.
// We only do that here to minimize the sent requests by only executing when it's really necessary
var available = XPipeDistributionType.get().getUpdateHandler().refreshUpdateCheckSilent();
if (preparedUpdate.getValue() == null) {
return;
}
if (available != null && !available.getVersion().equals(preparedUpdate.getValue().getVersion())) {
preparedUpdate.setValue(null);
return;