mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
@ -49,8 +49,8 @@ func (l *remoteLock) URLLock(url string) {
|
||||
if _, ok := l.m[url]; !ok {
|
||||
l.m[url] = &sync.Mutex{}
|
||||
}
|
||||
l.Unlock() // call this Unlock before the next lock will be called. NFI why but defer doesn't work.
|
||||
l.m[url].Lock()
|
||||
l.Unlock()
|
||||
}
|
||||
|
||||
// URLUnlock unlocks an URL when the download has been finished. Use only in defer calls.
|
||||
|
Reference in New Issue
Block a user