Mark plugins that errored in main as started (#17207)

This is to make sure plugin still runs stop / clean up code before it is unloaded. Otherwise context menu items etc. are not removed.
This commit is contained in:
Ted John authored and GitHub committed 2022-05-14 15:44:35 +01:00
1 parent 16585ecaf2
commit 3acec45f97
1 file changed
-1
-1
View File
@@ -97,7 +97,6 @@ void Plugin::Start()
{
auto val = std::string(duk_safe_to_string(_context, -1));
duk_pop(_context);
_hasStarted = false;
throw std::runtime_error("[" + _metadata.Name + "] " + val);
}
duk_pop(_context);