Updates a hook storage's clean method to reset the controllersReady flag to false every time the module is disabled.
Also, contains a small fix to the scheduler's method.
What this PR does / why we need it
Without resetting the controllersReady flag when a module is disabled, there is a possibility to catch a panic next time the module is enabled, as the module's hooks have to get their hooks controllers set before they can be safely evoked. The controllersReady helps avoid evoking a hook which hook controller hasn't been set yet.
Overview
Updates a hook storage's
clean
method to reset thecontrollersReady
flag to false every time the module is disabled.Also, contains a small fix to the scheduler's method.
What this PR does / why we need it
Without resetting the
controllersReady
flag when a module is disabled, there is a possibility to catch a panic next time the module is enabled, as the module's hooks have to get their hooks controllers set before they can be safely evoked. ThecontrollersReady
helps avoid evoking a hook which hook controller hasn't been set yet.Special notes for your reviewer