Skip to content

Schedule the update checks again after /usb reload - #240

Merged
minoneer merged 1 commit into
masterfrom
fix/update-check-after-reload
Oct 25, 2026
Merged

minoneer merged 1 commit into
masterfrom
fix/update-check-after-reload

Conversation

@minoneer

Copy link
Copy Markdown
Member

/usb reload cancels the plugin's tasks and builds a new update checker, but the 4-hourly update check was scheduled only once, at startup. After the first reload no check ran until a restart: /usb version never showed an update or the manual-check hint, and turning plugin-updates.check on with a reload did nothing.

Services.startup() now schedules the check, so it runs after startup and after every reload, exactly once each time. The old call in uSkyBlock.onEnable is gone.

  • Tests: a new ServicesTest. After a reload the check is scheduled again exactly once; with the check off no request goes out, and switching it on sends one. Both fail without the fix.
  • The same fix is already on release/4.0.

A reload cancels all of the plugin's tasks and starts new services with a
new SkyUpdateChecker, but the checks were only scheduled once, in
onEnable. After the first /usb reload no check ran until the next
restart, and /usb version, which reads the new checker, never showed an
available update or the manual-check hint. Turning plugin-updates.check
on with a reload had no effect.

The services now schedule the checks at every start, the reload's too.
@minoneer
minoneer merged commit fad43ae into master Oct 25, 2026
6 checks passed
@minoneer
minoneer deleted the fix/update-check-after-reload branch October 26, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant