Skip to content

Commit

Permalink
Merged back the DTM bug correction.
Browse files Browse the repository at this point in the history
--HG--
branch : dev
  • Loading branch information
fmder committed Jul 13, 2012
2 parents 35e3646 + 6742d63 commit d59c2e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deap/dtm/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,9 @@ def map(self, function, *iterables, **kwargs):
listTasks.append(task)
listTids.append(task.tid)

if len(listTids) == 0:
return []

if self.traceMode:
self.traceLock.acquire()
newTaskElem = etree.SubElement(cThread.xmlTrace, "event",
Expand Down Expand Up @@ -1149,6 +1152,9 @@ def map_async(self, function, *iterables, **kwargs):
listTasks.append(task)
listTids.append(task.tid)

if len(listTids) == 0:
return []

resultKey = listTids[0]

if self.traceMode:
Expand Down

0 comments on commit d59c2e5

Please sign in to comment.