aboutsummaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2022-04-28 04:19:33 +0100
committerGitHub <noreply@github.com>2022-04-28 11:19:33 +0800
commit332b2ecd214a79b49f3798f4f27fe02b23a17bf8 (patch)
tree7e1dfb1cee7387a700a44e32d2eb1ad88178fb9f /models/repo.go
parentca4b920bbcbc803ef6e3d1deffefab3ab88cb1c7 (diff)
downloadgitea-332b2ecd214a79b49f3798f4f27fe02b23a17bf8.tar.gz
gitea-332b2ecd214a79b49f3798f4f27fe02b23a17bf8.zip
Prevent intermittent race in attribute reader close (#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> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'models/repo.go')
0 files changed, 0 insertions, 0 deletions