frontend: Discard tray MAVLink listeners on destroy - #4046
frontend: Discard tray MAVLink listeners on destroy#4046joaoantoniocardoso wants to merge 1 commit into
Conversation
Automated PR Review0. Summary
Fixes listener leaks in the health/GPS tray components: HEARTBEAT and GPS listeners are now stored on the instance and No further comments, nice job 👍 Generated by PR Review Bot. This is advisory, a human reviewer must still approve. |
Store HEARTBEAT/GPS listeners with markRaw and discard them in beforeDestroy so remounts do not stack callbacks on shared endpoints.
65af139 to
2766059
Compare
Summary
markRawanddiscard()ed inbeforeDestroy.Endpoint.latestDataevery frame).Test plan
Supersedes #4033 (recreated from fork
joaoantoniocardoso/BlueOS-dockerinstead of same-repo head).