Skip to content
Snippets Groups Projects
Commit bdf82447 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

temp fix for lock in non-interactive lua session

parent 25dc38ce
No related branches found
No related tags found
No related merge requests found
...@@ -138,6 +138,8 @@ static int luaClear (lua_State *L){ ...@@ -138,6 +138,8 @@ static int luaClear (lua_State *L){
int binding::readFile(const char *filename) int binding::readFile(const char *filename)
{ {
int lock = CTX::instance()->lock;
CTX::instance()->lock = 0;
checkDocCompleteness(); checkDocCompleteness();
int s = luaL_loadfile(L, filename); int s = luaL_loadfile(L, filename);
if ( s==0 ) { if ( s==0 ) {
...@@ -146,6 +148,7 @@ int binding::readFile(const char *filename) ...@@ -146,6 +148,7 @@ int binding::readFile(const char *filename)
} }
reportErrors(L, s); reportErrors(L, s);
lua_close(L); lua_close(L);
CTX::instance()->lock = lock;
return (s==0); return (s==0);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment