mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: Fix auto-updates every 30 seconds (#1899)
- If no updates are found, properly defer.
This commit is contained in:
parent
d41682b66e
commit
82e6476ab6
1 changed files with 15 additions and 4 deletions
|
|
@ -240,10 +240,21 @@ internal class AutoUpdateManager : IServiceType
|
||||||
{
|
{
|
||||||
Log.Error(t.Exception!, "Failed to reload plugin masters for auto-update");
|
Log.Error(t.Exception!, "Failed to reload plugin masters for auto-update");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.NotifyUpdatesAreAvailable(
|
var updatable = this.GetAvailablePluginUpdates(
|
||||||
this.GetAvailablePluginUpdates(
|
DecideUpdateListingRestriction(behavior));
|
||||||
DecideUpdateListingRestriction(behavior)));
|
|
||||||
|
if (updatable.Count > 0)
|
||||||
|
{
|
||||||
|
this.NotifyUpdatesAreAvailable(updatable);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.nextUpdateCheckTime = DateTime.Now + TimeBetweenUpdateChecks;
|
||||||
|
Log.Verbose(
|
||||||
|
"Auto update found nothing to do, next update at {Time}",
|
||||||
|
this.nextUpdateCheckTime);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue