[Pkg-bitcoin-commits] [python-quamash] 96/269: Set the __been_shutdown flag when .shutdown is called on QThreadExecutor.

Jonas Smedegaard dr at jones.dk
Fri Nov 24 11:26:20 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 86ad7bfbe698142a92deb8e63602553542619049
Author: Mark Harviston <mark.harviston at gmail.com>
Date:   Thu Jul 17 12:56:28 2014 -0700

    Set the __been_shutdown flag when .shutdown is called on QThreadExecutor.
    
    (Hey those silly tests actually found a bug!)
---
 quamash/__init__.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/quamash/__init__.py b/quamash/__init__.py
index a8622fa..63895e4 100644
--- a/quamash/__init__.py
+++ b/quamash/__init__.py
@@ -113,7 +113,9 @@ class QThreadExecutor(QtCore.QObject):
 		if self.__been_shutdown:
 			raise RuntimeError("QThreadExecutor has been shutdown")
 
-		self._logger.debug('Closing')
+		self.__been_shutdown = True
+
+		self._logger.debug('Shutting down')
 		for i in range(len(self.__workers)):
 			# Signal workers to stop
 			self.__queue.put(None)

-- 
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