mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
removeAllListeners when service is stopped
This commit is contained in:
parent
3f553eb950
commit
fdb7a5e6f3
2 changed files with 2 additions and 4 deletions
|
|
@ -77,8 +77,7 @@ function Chromecast() {
|
|||
starting = false;
|
||||
onStateChanged();
|
||||
if (transport !== null) {
|
||||
transport.off('init', onTransportInit);
|
||||
transport.off('error', onTransportError);
|
||||
transport.removeAllListeners();
|
||||
transport = null;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -77,8 +77,7 @@ function Core() {
|
|||
starting = false;
|
||||
onStateChanged();
|
||||
if (transport !== null) {
|
||||
transport.off('init', onTransportInit);
|
||||
transport.off('error', onTransportError);
|
||||
transport.removeAllListeners();
|
||||
transport = null;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue