Ignore:
Timestamp:
08/01/15 19:01:31 (9 years ago)
Author:
tim
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/nanownlib/parallel.py

    r11 r16  
    4848   
    4949    def stop(self):
    50         for i in range(0,len(self.workers)):
     50        try:
     51            while True:
     52                self.workq.get(block=False)
     53                self.workq.task_done()
     54        except queue.Empty as e:
     55            pass
     56       
     57        for i in range(len(self.workers)):
    5158            self.workq.put(None)
    5259        for w in self.workers:
Note: See TracChangeset for help on using the changeset viewer.