Skip to content

Commit 91c20ce

Browse files
committed
fix(TriggerEvent): Plugin Stopped check
1 parent 549e650 commit 91c20ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/lua/LuaPlugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ void LuaPlugin::RegisterEventHandling(std::string eventName)
227227

228228
EventResult LuaPlugin::TriggerEvent(std::string invokedBy, std::string eventName, std::string eventPayload, PluginEvent *event)
229229
{
230-
if (this->GetPluginState() == PluginState_t::Stopped)
230+
if (this->GetPluginState() == PluginState_t::Stopped && eventName != "OnPluginStart" && eventName != "OnAllPluginsLoaded")
231231
return EventResult::Continue;
232232

233233
if (!this->globalEventHandler)

0 commit comments

Comments
 (0)