summaryrefslogtreecommitdiff
path: root/script/files.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/files.lua')
-rw-r--r--script/files.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/files.lua b/script/files.lua
index 5e86d217..37aef7e1 100644
--- a/script/files.lua
+++ b/script/files.lua
@@ -367,6 +367,7 @@ function m.addRef(uri)
return nil
end
file._ref = (file._ref or 0) + 1
+ log.debug('add ref', uri)
return function ()
m.delRef(uri)
end
@@ -378,6 +379,7 @@ function m.delRef(uri)
return
end
file._ref = (file._ref or 0) - 1
+ log.debug('del ref', uri)
if file._ref <= 0 then
m.remove(uri)
end