build: fixed the task counter when nothreads is used
[nivanova/samba-autobuild/.git] / buildtools / wafsamba / nothreads.py
index a7cfa7302e3fe09f57fa5dabc65bd350a585a353..d227ce1a973f451c03e9f721d6f175f3ec3874ed 100644 (file)
@@ -199,6 +199,7 @@ class Parallel(object):
                                # run me: put the task in ready queue
                                tsk.position = (self.processed, self.total)
                                self.count += 1
                                # run me: put the task in ready queue
                                tsk.position = (self.processed, self.total)
                                self.count += 1
+                               self.processed += 1
                                tsk.master = self
 
                                process(tsk)
                                tsk.master = self
 
                                process(tsk)