mjpeg-player: comments and logging

This commit is contained in:
Trek H 2020-01-28 16:26:25 +10:30
parent 88d1ccfe36
commit 5a1bb31093
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,6 @@ class PlaylistLoader extends EventHandler {
});
}
// param 1 -> data: { url: string; level: number | null; id: number | null; }
onLevelLoading(data) {
this.load({
url: data.url,
@ -160,6 +159,7 @@ class PlaylistLoader extends EventHandler {
if (loaderContext && loaderContext.url === context.url) { // same URL can't overlap
return false;
} else {
console.warn(`aborting previous loader for type: ${context.type}`);
loader.abort();
}
}