cache error fix
This commit is contained in:
1 parent
bdde5124ff
commit
255462493f
1 file changed
+2
-5
Vendored
+2
-5
@@ -128,11 +128,8 @@ local function trackResource(resourceName, type, data)
|
|||||||
for _, cb in ipairs(resourceTracker.callbacks[resourceName] or {}) do
|
for _, cb in ipairs(resourceTracker.callbacks[resourceName] or {}) do
|
||||||
local targetCache = Cache.Caches[cb.cacheName]
|
local targetCache = Cache.Caches[cb.cacheName]
|
||||||
if targetCache then
|
if targetCache then
|
||||||
table.remove(targetCache.OnChange, cb.index)
|
targetCache.OnChange[cb.index] = nil
|
||||||
debugPrint(("Removed OnChange callback from cache '%s' - resource '%s' stopped"):format(
|
debugPrint(("Removed callback '%s' from cache '%s' - resource '%s' stopped"):format(cb.index, cb.cacheName, resourceName))
|
||||||
cb.cacheName,
|
|
||||||
resourceName
|
|
||||||
))
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user