Fix small inefficiency in jobs dispatching
authorGregNoel <GregNoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 4 Oct 2008 15:35:50 +0000 (15:35 +0000)
committerGregNoel <GregNoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 4 Oct 2008 15:35:50 +0000 (15:35 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3549 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Job.py

index 594045c23c10dcab126fd1e90017577fd167d0fe..515f7be9bcf4b9370b7f8834e879d962a3b0be2f 100644 (file)
@@ -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.