This commit is contained in:
Daniel 2023-12-05 17:51:17 +08:00
parent 4347d12af0
commit b1cea465ac
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
8 changed files with 31 additions and 35 deletions

View file

@ -554,8 +554,8 @@ func copyTempAsset(absPath string) (ret string) {
return
}
filelock.RWLock.Lock()
defer filelock.RWLock.Unlock()
filelock.Lock(absPath)
defer filelock.Unlock(absPath)
ext := filepath.Ext(absPath)
ret = filepath.Join(dir, gulu.Rand.String(7)+ext)