mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +00:00
Make update check more robust
This commit is contained in:
parent
0812ae3113
commit
6a8707bfcf
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue