Skip to content

Commit

Permalink
fix splash server exit when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
lucywang000 committed Oct 18, 2019
1 parent 0010575 commit 12fff66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions splash/qtutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ def awake(self):
diff = time.time() - self.blockedAt
log.msg("awake; block time: %0.4f" % diff, system="QAbstractEventDispatcher")
_qtapp = QApp(sys.argv)
# we have to set this, because otherwise the program may quit when
# the last web view window is closed.
_qtapp.setQuitOnLastWindowClosed(False)
return _qtapp


Expand Down

0 comments on commit 12fff66

Please sign in to comment.