Skip to content

Commit

Permalink
Only merge when merging
Browse files Browse the repository at this point in the history
  • Loading branch information
irl committed Oct 18, 2016
1 parent b771c9c commit 66d2c59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pathspider/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def merger(self):
# logger.debug("worker %3u: %s" % (wn, self._worker_state[wn]))
# merge_cycles += 1

if self.flowqueue.qsize() >= self.resqueue.qsize():
if merging_flows and self.flowqueue.qsize() >= self.resqueue.qsize():
try:
flow = self.flowqueue.get_nowait()
except queue.Empty:
Expand Down Expand Up @@ -346,7 +346,7 @@ def merger(self):
except KeyError:
pass

else:
else if merging_results:
try:
res = self.resqueue.get_nowait()
except queue.Empty:
Expand Down

0 comments on commit 66d2c59

Please sign in to comment.