[Pkg-bitcoin-commits] [python-quamash] 212/269: Run loop one more time after run_until_complete
Jonas Smedegaard
dr at jones.dk
Fri Nov 24 11:26:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository python-quamash.
commit b21f77eb5a97d70bfcda48dd9759c49a53ce331c
Author: Mark Harviston <mark.harviston at gmail.com>
Date: Sun Jan 18 01:35:53 2015 -0800
Run loop one more time after run_until_complete
Running the loop one more time seems to get rid of pending events or
something (only seems to be needed on windows, but it shouldn't hurt on
any platform)
---
quamash/__init__.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/quamash/__init__.py b/quamash/__init__.py
index 56fc8b0..55a33dd 100644
--- a/quamash/__init__.py
+++ b/quamash/__init__.py
@@ -284,6 +284,7 @@ class QEventLoop(_baseclass):
self.run_forever()
finally:
future.remove_done_callback(stop)
+ self.__app.processEvents() # run loop one last time to process all the events
if not future.done():
raise RuntimeError('Event loop stopped before Future completed.')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/python-quamash.git
More information about the Pkg-bitcoin-commits
mailing list