diff options
author | zeripath <art27@cantab.net> | 2021-02-13 19:02:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-13 20:02:09 +0100 |
commit | b3c2e23cbbfc6386f0d35e252051f9f74f548f98 (patch) | |
tree | af38d1bb992c1bb34920805f7efb7317b12ff085 /modules/templates/base.go | |
parent | 5e4fa7c703726cfc18ce8741a5d829173f3fec5c (diff) | |
download | gitea-b3c2e23cbbfc6386f0d35e252051f9f74f548f98.tar.gz gitea-b3c2e23cbbfc6386f0d35e252051f9f74f548f98.zip |
Prevent race in PersistableChannelUniqueQueue.Has (#14651)
There is potentially a race with a slow starting internal
queue causing a NPE if Has is checked before the internal
queue has been setup.
This PR adds a lock on the Has() fn.
Fix #14311
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/templates/base.go')
0 files changed, 0 insertions, 0 deletions