Not sure which kind of event handling you’re using, but do you unsubscribe from the events when the action is actually stopped? I had a similar oversight in our own codebase where I subscribed to events during initialization but forgot to unsubscribe when the action was over, so the events still called into the dormant action, causing funny side-effects.
Edit: 1. You’re not supposed to call EndAction() before OnExecute() is called. So subscribing to events is best done in OnExecute() end then unsubscribe when the action finishes (OnStopped?). OnInit will AFAIR be called really early in the lifecycle of the action and it may be a good place to install handlers, but you have to be sure that the handlers only affect the action result state when the action is only actually executing.
Login
Register
By registering on this website you agree to our Privacy Policy.