This commit is contained in:
Kovid Goyal 2020-03-03 09:27:55 +05:30
parent 74fa1b7504
commit c2f3bc2dbb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -50,6 +50,7 @@ from polyglot.builtins import (
from polyglot.urllib import urlparse
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_started_at = 0
t.setTimerType(Qt.VeryCoarseTimer)
t.setInterval(60 * 1000)
t.setInterval(HANG_TIME * 1000)
t.setSingleShot(True)
t.timeout.connect(self.on_load_hang)