mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
74fa1b7504
commit
c2f3bc2dbb
@ -50,6 +50,7 @@ from polyglot.builtins import (
|
|||||||
from polyglot.urllib import urlparse
|
from polyglot.urllib import urlparse
|
||||||
|
|
||||||
OK, KILL_SIGNAL = range(0, 2)
|
OK, KILL_SIGNAL = range(0, 2)
|
||||||
|
HANG_TIME = 60 # seconds
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
|
||||||
@ -178,7 +179,7 @@ class Renderer(QWebEnginePage):
|
|||||||
self.load_hang_check_timer = t = QTimer(self)
|
self.load_hang_check_timer = t = QTimer(self)
|
||||||
self.load_started_at = 0
|
self.load_started_at = 0
|
||||||
t.setTimerType(Qt.VeryCoarseTimer)
|
t.setTimerType(Qt.VeryCoarseTimer)
|
||||||
t.setInterval(60 * 1000)
|
t.setInterval(HANG_TIME * 1000)
|
||||||
t.setSingleShot(True)
|
t.setSingleShot(True)
|
||||||
t.timeout.connect(self.on_load_hang)
|
t.timeout.connect(self.on_load_hang)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user