Permalink
Browse files

Fix for problem found by Seth Vidal:

  • Loading branch information...
rubys authored and mortenf committed Oct 25, 2010
1 parent 5cefb0f commit 62d3e68f793537a982cc850d87b407864622441e
Showing with 2 additions and 2 deletions.
  1. +2 −2 planet/spider.py
View
@@ -428,8 +428,6 @@ def spiderPlanet(only_if_new = False):
# Process the results as they arrive
feeds_seen = {}
while fetch_queue.qsize() or parse_queue.qsize() or threads:
- while parse_queue.qsize() == 0 and threads:
- time.sleep(0.1)
while parse_queue.qsize():
(uri, feed_info, feed) = parse_queue.get(False)
try:
@@ -487,6 +485,8 @@ def spiderPlanet(only_if_new = False):
traceback.format_tb(tb)):
log.error(line.rstrip())
+ time.sleep(0.1)
+
for index in threads.keys():
if not threads[index].isAlive():
del threads[index]

0 comments on commit 62d3e68

Please sign in to comment.