1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-05 22:08:14 +00:00
Files
gitea/modules/git/repo_attribute.go
zeripath 74602bb487 Prevent intermittent race in attribute reader close (#19537) (#19539)
Backport #19537

There is a potential rare race possible whereby the c.running channel could
be closed twice. Looking at the code I do not see a need for this c.running
channel and therefore I think we can remove this. (I think the c.running
might have been some attempt to prevent a hang but the use of os.Pipes should
prevent that.)

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-04-28 17:00:01 +02:00

9.2 KiB