ping-check hook should honor NetworkState
The last piece missing in ping check is coordinating with NetworkState. Currently, the hook library will continue to process existing ping checks even if NetworkState becomes disabled. Obviously no new checks would be created by core until the NetworkState is enabled again.
At first blush, this is matter of adding state checks in strategic places and acting accordingly. If disabled state is detected, existing checks would be flushed. If NetworkState were to be expanded to provide callbacks, similar to what is done with CriticalSections, this might have broader applications than just ping-check. Food for thought.