Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Disposal of controller when redirectTo is called in beforeAction #822

Open
dts opened this issue Jul 11, 2014 · 0 comments
Open

Disposal of controller when redirectTo is called in beforeAction #822

dts opened this issue Jul 11, 2014 · 0 comments

Comments

@dts
Copy link

dts commented Jul 11, 2014

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant