This commit is contained in:
Kovid Goyal 2022-04-02 12:17:14 +05:30
parent 212ad2a135
commit 4a0b742d2d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ class SearchDialog(QDialog, Ui_Dialog):
self.results_view.model().set_query(query) self.results_view.model().set_query(query)
# Plugins are in random order that does not change. # Plugins are in random order that does not change.
# Randomize the ord of the plugin names every time # Randomize the order of the plugin names every time
# there is a search. This way plugins closer # there is a search. This way plugins closer
# to a don't have an unfair advantage over # to a don't have an unfair advantage over
# plugins further from a. # plugins further from a.

View File

@ -59,7 +59,7 @@ class Overseer:
overseers.append(weakref.ref(self)) overseers.append(weakref.ref(self))
def worker_for_source(self, source): def worker_for_source(self, source):
wname = f'{source}-{get_ident()}' wname = f'{source}::{get_ident()}'
with self.lock: with self.lock:
ans = self.workers.get(wname) ans = self.workers.get(wname)
if ans is None: if ans is None: