Browse Source

just make it display the running threads too

master
Julio Biason 15 years ago
parent
commit
742cd4eb38
  1. 8
      mitterlib/ui/ui_pygtk.py

8
mitterlib/ui/ui_pygtk.py

@ -147,12 +147,12 @@ class _ThreadManager(object):
# not actually a widget. It's the object that emitted the signal, in
# this case, the _WorkerThread object.
thread_id = widget.getName()
_log.debug('Thread id %s completed, %d threads in the queue',
thread_id, len(self._thread_pool))
self._running.remove(thread_id)
_log.debug('Thread id %s completed, %d threads in the queue, ' \
'%d running', thread_id, len(self._thread_pool),
len(self._running))
if self._thread_pool:
if len(self._running) < self._max_threads:
next = self._thread_pool.pop()

Loading…
Cancel
Save