瀏覽代碼

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

tags/v0.2
Ben Kurtovic 10 年之前
父節點
當前提交
2bddf79a3d
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      earwigbot/wiki/copyvios/__init__.py

+ 1
- 1
earwigbot/wiki/copyvios/__init__.py 查看文件

@@ -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…
取消
儲存