From b84ea05c63294cd2c3c5a9329c55e5ed5617d2f7 Mon Sep 17 00:00:00 2001 From: ewy Date: Sat, 2 May 2026 19:31:48 +0200 Subject: be more cool about weird icons --- indexers/pikdex/index.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'indexers/pikdex/index.go') diff --git a/indexers/pikdex/index.go b/indexers/pikdex/index.go index 2bb5d36..64e76e6 100644 --- a/indexers/pikdex/index.go +++ b/indexers/pikdex/index.go @@ -77,10 +77,12 @@ func (u *pikdex) Index(absPath string, f fs.FS, runners []model.Runner) ([]model mod := u.mods[absPath] u.Unlock() if mod == nil { + u.Lock() u.mods[absPath] = &SourceData{ Path: absPath, } mod = u.mods[absPath] + u.Unlock() } err = fs.WalkDir(f, root, func(p string, d fs.DirEntry, err error) error { -- cgit v1.3.1