Commit 98c58cf
Guard against stop() during loadAndPlaySpin await
After awaiting player.load(), check that stationId is still set before
proceeding to playback. If stop() ran during the suspension, clean up
the player instead of overwriting the .idle state.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5284796 commit 98c58cf
1 file changed
Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
177 | 185 | | |
178 | 186 | | |
179 | 187 | | |
| |||
0 commit comments