summaryrefslogtreecommitdiff
path: root/indexers/pikdex/index.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-05-02 19:31:48 +0200
committerewy <ewy0@protonmail.com>2026-05-02 19:31:48 +0200
commitb84ea05c63294cd2c3c5a9329c55e5ed5617d2f7 (patch)
treee1342e478a7298e51c6aecf63a492602bcccedf0 /indexers/pikdex/index.go
parent45847dc53ec51c090175d8621711250b60b28263 (diff)
be more cool about weird icons
Diffstat (limited to 'indexers/pikdex/index.go')
-rw-r--r--indexers/pikdex/index.go2
1 files changed, 2 insertions, 0 deletions
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 {