summaryrefslogtreecommitdiff
path: root/crocoite
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2017-12-23 09:53:53 +0100
committerLars-Dominik Braun <lars@6xq.net>2017-12-23 09:53:53 +0100
commite4120c1fad6a2ec79ff37b1a2870a0a126d3e2cb (patch)
treebc4c9f23bb9f1cd00354dcbb83b7d19c33ff497c /crocoite
parentfd279ff3168c91be2ed8a012af6395034475ccf5 (diff)
downloadcrocoite-e4120c1fad6a2ec79ff37b1a2870a0a126d3e2cb.tar.gz
crocoite-e4120c1fad6a2ec79ff37b1a2870a0a126d3e2cb.tar.bz2
crocoite-e4120c1fad6a2ec79ff37b1a2870a0a126d3e2cb.zip
Drain tab event queue before stopping
Diffstat (limited to 'crocoite')
-rw-r--r--crocoite/browser.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/crocoite/browser.py b/crocoite/browser.py
index e1feda9..9f0c2d0 100644
--- a/crocoite/browser.py
+++ b/crocoite/browser.py
@@ -137,6 +137,8 @@ class SiteLoader:
tab.Page.stopLoading ()
tab.Network.disable ()
tab.Page.disable ()
+ # XXX: we can’t drain the event queue directly, so insert (yet another) wait
+ tab.wait (1)
tab.Network.requestWillBeSent = None
tab.Network.responseReceived = None
tab.Network.loadingFinished = None