fix(meta): no need to check for old_dir when frags were not built yet. Fixes #1550

This commit is contained in:
Folke Lemaitre 2024-06-25 15:51:40 +02:00
parent 4ca3e9aa51
commit 24c832213c
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ function M:add(plugin)
table.insert(meta._.frags, fragment.id) table.insert(meta._.frags, fragment.id)
if meta._ and meta._.rtp_loaded then if meta._ and meta._.rtp_loaded and meta.dir then
local old_dir = meta.dir local old_dir = meta.dir
self:_rebuild(meta.name) self:_rebuild(meta.name)
local new_dir = meta.dir local new_dir = meta.dir