changeset 126:ee7cf70fd364

A fix to the previous memory leak fix.
author Allan Saddi <allan@saddi.com>
date Tue, 16 Feb 2010 23:24:32 -0800
parents 5926f5b358dc
children 0266cedb313b
files flup/server/threadpool.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/flup/server/threadpool.py	Fri Feb 12 10:58:43 2010 -0800
     1.2 +++ b/flup/server/threadpool.py	Tue Feb 16 23:24:32 2010 -0800
     1.3 @@ -68,7 +68,7 @@
     1.4          self._lock.release()
     1.5  
     1.6          # wait for all threads to finish
     1.7 -        for t in self._threads:
     1.8 +        for t in self._threads[:]:
     1.9              t.join()
    1.10  
    1.11      def addJob(self, job, allowQueuing=True):