File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -84,12 +84,12 @@ function mt:loadFile(uri, libraryUri)
84
84
log .info ((' Skip loaded file: %s' ):format (uri ))
85
85
else
86
86
local content = pub .awaitTask (' loadFile' , furi .decode (uri ))
87
+ self .read = self .read + 1
88
+ self :update ()
87
89
if self ._cache [uri ] then
88
90
return
89
91
end
90
92
self ._cache [uri ] = true
91
- self .read = self .read + 1
92
- self :update ()
93
93
if not content then
94
94
return
95
95
end
@@ -113,12 +113,12 @@ function mt:loadFile(uri, libraryUri)
113
113
log .info ((' Skip loaded file: %s' ):format (uri ))
114
114
else
115
115
local content = pub .awaitTask (' loadFile' , furi .decode (uri ))
116
+ self .read = self .read + 1
117
+ self :update ()
116
118
if self ._cache [uri ] then
117
119
return
118
120
end
119
121
self ._cache [uri ] = true
120
- self .read = self .read + 1
121
- self :update ()
122
122
if not content then
123
123
return
124
124
end
You can’t perform that action at this time.
0 commit comments