From 3e2a9c04013bdbce2132c6435ed2196ac038dbbf Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 7 Jan 2020 09:59:45 +0100 Subject: [PATCH] Skip torrent status responses with no url. --- .../backend/http/static/js/plugins/media/handlers/torrent.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platypush/backend/http/static/js/plugins/media/handlers/torrent.js b/platypush/backend/http/static/js/plugins/media/handlers/torrent.js index 35a6d2ea..edc09d6c 100644 --- a/platypush/backend/http/static/js/plugins/media/handlers/torrent.js +++ b/platypush/backend/http/static/js/plugins/media/handlers/torrent.js @@ -237,7 +237,8 @@ MediaHandlers.torrent = MediaHandlers.base.extend({ return; for (const [url, torrent] of Object.entries(status)) { - self.torrentStatus[event.url] + if (!torrent.url) + continue; self.mergeStatus(torrent); } });