]> git.openstreetmap.org Git - nominatim.git/commitdiff
nominatim: always use deadlock-protected wait
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 15 May 2020 16:48:01 +0000 (18:48 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 15 May 2020 16:49:27 +0000 (18:49 +0200)
Fixes #1785.

nominatim/nominatim.py

index 0db0777dc17d20b87413a2bf55d08432dc55de24..3e9c2f1644116e1efab46bd0e03c8291f9687ce6 100755 (executable)
@@ -297,7 +297,7 @@ class Indexer(object):
             if command_stat > 100000:
                 for t in self.threads:
                     while not t.is_done():
-                        wait_select(t.conn)
+                        t.wait()
                     t.connect()
                 command_stat = 0
                 ready = self.threads