[py-svn] r10819 - py/dist/py/thread
hpk at codespeak.net
hpk at codespeak.net
Mon Apr 18 18:12:31 CEST 2005
Author: hpk
Date: Mon Apr 18 18:12:31 2005
New Revision: 10819
Modified:
py/dist/py/thread/pool.py
Log:
fix stop-logic
Modified: py/dist/py/thread/pool.py
==============================================================================
--- py/dist/py/thread/pool.py (original)
+++ py/dist/py/thread/pool.py Mon Apr 18 18:12:31 2005
@@ -14,10 +14,10 @@
try:
while 1:
reply = self._queue.get()
- task = reply.task
- assert self not in self._pool._ready
- if task is None:
+ if reply is None:
break
+ assert self not in self._pool._ready
+ task = reply.task
try:
func, args, kwargs = task
result = func(*args, **kwargs)
More information about the pytest-commit
mailing list