changeset 125:5926f5b358dc

Fix memory leak in threadpool.
author Allan Saddi <allan@saddi.com>
date Fri, 12 Feb 2010 10:58:43 -0800
parents c25da81ee81a
children ee7cf70fd364
files flup/server/threadpool.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/flup/server/threadpool.py	Fri Feb 12 10:53:36 2010 -0800
     1.2 +++ b/flup/server/threadpool.py	Fri Feb 12 10:58:43 2010 -0800
     1.3 @@ -143,6 +143,7 @@
     1.4  
     1.5              # Die off...
     1.6              assert self._workerCount > self._maxSpare
     1.7 +            self._threads.remove(threading.currentThread())
     1.8              self._workerCount -= 1
     1.9          finally:
    1.10              self._lock.release()