projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18060e5
)
Catch Lua exception when scanning scripts
author
Robin Gareus
<robin@gareus.org>
Mon, 21 Aug 2017 15:07:54 +0000
(17:07 +0200)
committer
Robin Gareus
<robin@gareus.org>
Mon, 21 Aug 2017 15:07:54 +0000
(17:07 +0200)
libs/ardour/luascripting.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/luascripting.cc
b/libs/ardour/luascripting.cc
index a63dc9ea489f91ed80a34b279335d55b13e18627..5d0b45aaf5506888fe3bc126f11a37c485211846 100644
(file)
--- a/
libs/ardour/luascripting.cc
+++ b/
libs/ardour/luascripting.cc
@@
-294,9
+294,11
@@
LuaScripting::scan_script (const std::string &fn, const std::string &sc)
luabridge::LuaRef lua_ss = luabridge::getGlobal (L, "session_setup");
if (lua_ss.isFunction ()) {
- if (lua_ss () == true) {
- lsi->subtype |= LuaScriptInfo::SessionSetup;
- }
+ try {
+ if (lua_ss () == true) {
+ lsi->subtype |= LuaScriptInfo::SessionSetup;
+ }
+ } catch (...) { }
}
}