From: GregNoel Date: Sat, 4 Oct 2008 15:35:50 +0000 (+0000) Subject: Fix small inefficiency in jobs dispatching X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f968c557132ccb83be8785a0fe954268cbb42129;p=scons.git Fix small inefficiency in jobs dispatching git-svn-id: http://scons.tigris.org/svn/scons/trunk@3549 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/Job.py b/src/engine/SCons/Job.py index 594045c2..515f7be9 100644 --- a/src/engine/SCons/Job.py +++ b/src/engine/SCons/Job.py @@ -243,7 +243,7 @@ else: while 1: task = self.requestQueue.get() - if not task: + if task is None: # The "None" value is used as a sentinel by # ThreadPool.cleanup(). This indicates that there # are no more tasks, so we should quit.