diff --git a/src/WebampComponent.js b/src/WebampComponent.js index 4f2c8cb1..61d78c27 100644 --- a/src/WebampComponent.js +++ b/src/WebampComponent.js @@ -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/