Commit 276cde2
committed
Fix: Remove blocking cleanup from video-moq disconnectedCallback
The disconnectedCallback was calling destroy() which closes AudioContext,
blocking the main thread for several seconds. This caused UI freezes when
removing the element from DOM.
Solution: Skip cleanup in disconnectedCallback and let garbage collection
handle resource cleanup asynchronously without blocking the UI.1 parent 43b3373 commit 276cde2
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
166 | 170 | | |
167 | 171 | | |
168 | | - | |
169 | | - | |
170 | | - | |
| 172 | + | |
| 173 | + | |
171 | 174 | | |
172 | 175 | | |
173 | 176 | | |
| |||
0 commit comments