Bug fix
Check_use was happening too fast.
This commit is contained in:
parent
1d11788eba
commit
185a853820
10
colddb.lua
10
colddb.lua
@ -93,10 +93,10 @@ function colddb.remove_tag(db,name)
|
|||||||
db.tags[name] = nil
|
db.tags[name] = nil
|
||||||
local err,msg = os.remove(delete_path)
|
local err,msg = os.remove(delete_path)
|
||||||
if err == nil and ie then
|
if err == nil and ie then
|
||||||
assert(ie, "Please add colddb to secure.trusted_mods in the settings")
|
local err,msg = ie.os.remove(delete_path)
|
||||||
local cmd = string.format("rmdir %s",delete_path)
|
if err == nil and ie then
|
||||||
ie.os.execute(cmd)
|
assert(ie, "Please add colddb to secure.trusted_mods in the settings")
|
||||||
cmd = nil
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -521,7 +521,7 @@ local function load_into_mem(db,name,_table,tag_name)
|
|||||||
db.mem_pool[cs].inuse = false
|
db.mem_pool[cs].inuse = false
|
||||||
db.mem_pool[cs].indexes = db.indexes
|
db.mem_pool[cs].indexes = db.indexes
|
||||||
db.mem_pool[cs].check_timer = true
|
db.mem_pool[cs].check_timer = true
|
||||||
check_use(db,name,tag_name)
|
minetest.after(30,check_use,name,tag_name,30,0)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user