diff options
| author | Michael Tews <michael@tews.dev> | 2026-03-15 23:45:34 +0100 |
|---|---|---|
| committer | Michael Tews <michael@tews.dev> | 2026-03-15 23:45:34 +0100 |
| commit | 95563d33c43d61e7a9b205d502f02846e2afcc45 (patch) | |
| tree | b8ed8a8b2ce0af8d6bd67345ab5a489f0a10a1a0 | |
| parent | 60d94bd4a6601a6b98c01d8017f6ce3491f100e4 (diff) | |
fix: deadlock in FillFolderNode when !childrenNode.IsReadable
| -rw-r--r-- | backend/studip/fs.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/studip/fs.go b/backend/studip/fs.go index 70b9dac..ad5643c 100644 --- a/backend/studip/fs.go +++ b/backend/studip/fs.go @@ -276,10 +276,11 @@ func (f *Fs) FillFolderNode( { errChan := make(chan error) - length := len(folderNode.Children) + length := 0 { for _, childrenNode := range folderNode.Children { if childrenNode.IsReadable { + length++ go func() { errChan <- f.FillFolderNode(ctx, childrenNode, joinPath(path, childrenNode.Name)) }() |
