CLuaInstance: Executing 'zapit leave standby' only when script...

...is terminated with an error

Complement to commit 6f66e21940
This commit is contained in:
M. Liebmann
2015-11-16 05:02:42 +01:00
parent 24881e4228
commit 09881321e2

View File

@@ -475,8 +475,8 @@ void CLuaInstance::runScript(const char *fileName, std::vector<std::string> *arg
DisplayErrorMessage(lua_tostring(lua, -1), "Lua Script Error:");
if (error_string)
*error_string = std::string(lua_tostring(lua, -1));
g_Zapit->setStandby(false);
}
g_Zapit->setStandby(false);
}
// Example: runScript(fileName, "Arg1", "Arg2", "Arg3", ..., NULL);