From 4ced832557f72bcb1cba38e1c29f3fad4e45f4c7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 3 Jun 2010 13:06:04 -0600 Subject: [PATCH] Increase timeout when adding files to 10 minutes --- src/calibre/gui2/add.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/add.py b/src/calibre/gui2/add.py index 131692a2c2..64743e914b 100644 --- a/src/calibre/gui2/add.py +++ b/src/calibre/gui2/add.py @@ -222,6 +222,8 @@ class DBAdder(Thread): class Adder(QObject): + ADD_TIMEOUT = 600 # seconds + def __init__(self, parent, db, callback, spare_server=None): QObject.__init__(self, parent) self.pd = ProgressDialog(_('Adding...'), parent=parent) @@ -328,7 +330,7 @@ class Adder(QObject): except Empty: pass - if (time.time() - self.last_added_at) > 300: + if (time.time() - self.last_added_at) > self.ADD_TIMEOUT: self.timer.stop() self.pd.hide() self.db_adder.end = True