Don't load Webamp if we are already unmounted

This commit is contained in:
Jordan Eldredge 2020-11-07 19:06:57 -08:00
parent 2d1ba5ec36
commit e183d1f6a0

View file

@ -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/