Fix inverted client filter in admin hide ping

The hide=1 branch kept the admin's own pending crawler hits (==) instead
of discarding them (!=), so an admin's document GETs flushed to the
crawler list 10s later while every other client's pending hits were
wrongly dropped. This is why ordinary admin browsers showed up as
crawlers.
This commit is contained in:
2026-08-24 19:40:12 +00:00
parent 6fcebaea3f
commit 2868843028
+1 -1
View File
@@ -697,7 +697,7 @@ class Store:
if hide:
# Admin ping: cancel pending crawler hits and scrub the session.
self.pending_crawlers = [
hit for hit in self.pending_crawlers if hit.client == client_hash
hit for hit in self.pending_crawlers if hit.client != client_hash
]
index = self.sessions.pop(client_hash, None)
if index is not None and index < len(self.data.visits):