Fix #16591: Plugins: setInterval and setTimeout is not disposed...

This commit is contained in:
Ted John committed 2022-02-17 20:18:16 +00:00
1 parent d0c019d222
commit 105009f3f8
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -725,7 +725,7 @@ DukValue ScriptEngine::ExecutePluginCall(
bool isGameStateMutable)
{
DukStackFrame frame(_context);
if (func.is_function())
if (func.is_function() && plugin->HasStarted())
{
ScriptExecutionInfo::PluginScope scope(_execInfo, plugin, isGameStateMutable);
func.push();