Hi Ray,
What Version is your code based on? What is the Symptom?
You shouldn't need to check the StopState. If a FeedHold is issued and one is already in progress it will be ignored. And similarly any Resume from a non-feedhold state will be ignored.
Regards