Disposal of controller when redirectTo is called in beforeAction
dts opened this issue · 0 comments
dts commented
I have a controller that checks for certain preconditions, and potentially redirectTo's away from itself in the beforeAction. This happens after beforeAction has returned, but before the promise that beforeAction returned rejects. Under this circumstance, the controller that was initialized (to call beforeAction on) is still hanging around. I am currently manually disposing of this dangling controller, but presumably Chaplin should be GCing this object.