mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
intersept load action only if the middleware is not destroyed
This commit is contained in:
parent
0dd46973b2
commit
f7ab601618
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ function withStreamingServer(Video) {
|
|||
video.on(eventName, listener);
|
||||
}
|
||||
function dispatch(args) {
|
||||
if (args && args.commandName === 'load') {
|
||||
if (!destroyed && args && args.commandName === 'load') {
|
||||
stream = null;
|
||||
video.dispatch({ commandName: 'stop' });
|
||||
if (args.commandArgs && args.commandArgs.stream && typeof args.commandArgs.stream.infoHash === 'string' && typeof args.commandArgs.streamingServerUrl === 'string') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue