The built-in troubleshooter is the first line of defense. It can automatically detect and fix inconsistencies in the update service settings.
If you are looking for a "better" way to handle this than just rebooting, follow these steps in order: Reset the Windows Update Components 0x8024a22a windows update error better
This is the first step recommended by Microsoft to automatically diagnose and fix common service interruptions. The built-in troubleshooter is the first line of defense