Restarting is a common practice for fixing all sorts of computer problems see whyso it's no surprise that it can fix whatever is causing the Code 22 error. If so, a restart of your computer might be all you need to fix the Code 22 error. There's always the chance that the error Code 22 you're seeing on a device was caused by a temporary problem with the hardware. All that means is that the Code 22 you're seeing was caused by something a bit less common.
Most of the time this will fix a Code 22 issue.