]> err.no Git - dak/commitdiff
try to get rid of deadlock
authorMike O'Connor <stew@vireo.org>
Fri, 30 Oct 2009 14:27:41 +0000 (15:27 +0100)
committerMike O'Connor <stew@vireo.org>
Fri, 30 Oct 2009 14:27:41 +0000 (15:27 +0100)
Signed-off-by: Mike O'Connor <stew@vireo.org>
dak/import_known_changes.py

index d286775abcb977770b9f15ca99815d2f94017ff4..0b2386263143be2fe184d09ba3c50848d7c422e2 100755 (executable)
@@ -144,7 +144,7 @@ class OneAtATime(object):
 
         assert( not self.next_in_line )
         self.next_in_line = next
-        self.next_lock.notify()
+        self.next_lock.notifyAll()
         self.next_lock.release()
 
     def dequeue(self):
@@ -157,7 +157,7 @@ class OneAtATime(object):
         result = self.next_in_line
 
         self.next_in_line = None
-        self.next_lock.notify()
+        self.next_lock.notifyAll()
         self.next_lock.release()
 
         if isinstance(result, EndOfChanges):