mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
CLuaInstance: Executing 'zapit leave standby' only when script...
...is terminated with an error Complement to commit94e11ad2a0
Origin commit data ------------------ Branch: ni/coolstream Commit:09881321e2
Author: Michael Liebmann <tuxcode.bbg@gmail.com> Date: 2015-11-16 (Mon, 16 Nov 2015) ------------------ This commit was generated by Migit
This commit is contained in:
@@ -475,8 +475,8 @@ void CLuaInstance::runScript(const char *fileName, std::vector<std::string> *arg
|
|||||||
DisplayErrorMessage(lua_tostring(lua, -1), "Lua Script Error:");
|
DisplayErrorMessage(lua_tostring(lua, -1), "Lua Script Error:");
|
||||||
if (error_string)
|
if (error_string)
|
||||||
*error_string = std::string(lua_tostring(lua, -1));
|
*error_string = std::string(lua_tostring(lua, -1));
|
||||||
|
g_Zapit->setStandby(false);
|
||||||
}
|
}
|
||||||
g_Zapit->setStandby(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Example: runScript(fileName, "Arg1", "Arg2", "Arg3", ..., NULL);
|
// Example: runScript(fileName, "Arg1", "Arg2", "Arg3", ..., NULL);
|
||||||
|
Reference in New Issue
Block a user