mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-27 03:54:24 +00:00
Stop playing when disposed
This commit is contained in:
parent
5ebd8f2be1
commit
de978d92b3
2 changed files with 3 additions and 0 deletions
|
|
@ -163,6 +163,8 @@ export default class ElementSource {
|
|||
}
|
||||
|
||||
dispose() {
|
||||
// TODO: Dispose subscriptions to this.audio
|
||||
this.stop();
|
||||
this._emitter.dispose();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -383,6 +383,7 @@ class Winamp {
|
|||
dispose() {
|
||||
// TODO: Clean up store subscription in onTrackDidChange
|
||||
// TODO: Every storeHas call represents a potential race condition
|
||||
this.media.dispose();
|
||||
this._actionEmitter.dispose();
|
||||
this._disposable.dispose();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue