Browse Source

Fix deadlock when calling queue.put() while holding the mutex.

tags/v0.2
Ben Kurtovic 10 years ago
parent
commit
2bddf79a3d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/wiki/copyvios/__init__.py

+ 1
- 1
earwigbot/wiki/copyvios/__init__.py View File

@@ -73,7 +73,7 @@ class _CopyvioWorkspace(object):
for worker in self._workers.itervalues():
with worker.queue.mutex:
worker.queue.queue.clear()
worker.queue.put(None)
worker.queue.queue.append(None)
self._is_finished = True

def enqueue(self, urls, exclude_check=None):


Loading…
Cancel
Save