diff --git a/Updater/Updater.xml b/Updater/Updater.xml index 9a3b8c0..cffa947 100644 --- a/Updater/Updater.xml +++ b/Updater/Updater.xml @@ -53,11 +53,11 @@ function UpdatePlugin(pid, pfile, pversion, raw) file:write(page) file:close() DoAfterSpecial(3, "ReloadPlugin(" .. pid .. ")", 12) - UnloadPlugin(GetPluginID()) - os.remove(GetPluginInfo(GetPluginID(), 6)) end raw_version = nil + UnloadPlugin(GetPluginID()) + os.remove(GetPluginInfo(GetPluginID(), 6)) end ]]>