mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fix sync: RUnlock of unlocked RWMutex
This commit is contained in:
@@ -31,8 +31,8 @@ func (v *DBReadCache) CloseDB() {
|
||||
func (v *DBReadCache) Get(xPath, name string) []byte {
|
||||
cacheKey := v.makeDataCacheKey(xPath, name)
|
||||
v.dataCacheMutex.RLock()
|
||||
defer v.dataCacheMutex.RUnlock()
|
||||
if data, ok := v.dataCache[cacheKey]; ok {
|
||||
defer v.dataCacheMutex.RUnlock()
|
||||
return data
|
||||
}
|
||||
v.dataCacheMutex.RUnlock()
|
||||
|
||||
Reference in New Issue
Block a user