mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 18:17:38 +00:00
Don't load Webamp if we are already unmounted
This commit is contained in:
parent
2d1ba5ec36
commit
e183d1f6a0
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ class WebampComponent extends React.Component {
|
|||
|
||||
async _loadWebamp() {
|
||||
const Webamp = (await import("webamp")).default;
|
||||
if (this._unmounted === true) {
|
||||
if (this._disposable.disposed) {
|
||||
return;
|
||||
}
|
||||
// https://freemusicarchive.org/music/netBloc_Artists/netBloc_Vol_24_tiuqottigeloot/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue