From 55c728dd9e57c429e4c1158aa69bd84cce80643a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 13 Feb 2014 16:58:46 +0530 Subject: [PATCH] ... --- src/calibre/web/jsbrowser/browser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/web/jsbrowser/browser.py b/src/calibre/web/jsbrowser/browser.py index 5504ba515b..53ba4c810a 100644 --- a/src/calibre/web/jsbrowser/browser.py +++ b/src/calibre/web/jsbrowser/browser.py @@ -637,6 +637,9 @@ class Browser(QObject, FormsMixin): self.page.unsupportedContent.disconnect(self.page.on_unsupported_content) try: def download(reply): + if ans[0]: + reply.abort() # We only handle the first unsupported download + return ans[0] = True while not reply.isFinished() and end_time > time.time(): if not loop.processEvents():