diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-08-05 07:07:41 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2013-08-05 07:07:41 +0200 |
commit | 4d77b2060aa76ec194bc643e6b20138a4cd529e9 (patch) | |
tree | fc9a9624d72370c67dc2eabcdbf8c67c143205cb | |
parent | f0864213a4175cc77cc84abe56831f294a9c7d25 (diff) |
The lua_load operation is a bit complicated, and can't throw EAgain.
-rw-r--r-- | src/BLua.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/BLua.cc b/src/BLua.cc index e729d83..48e77d4 100644 --- a/src/BLua.cc +++ b/src/BLua.cc @@ -572,7 +572,10 @@ void Balau::Lua::load(IO<Handle> h, bool docall) throw (GeneralException) { IO<Input> i = h; if (!i.isNull()) name = String("@") + i->getFName(); - status = lua_load(L, LuaStatics::getF, &lf, name.to_charp()); + { + Task::SimpleContext sc; + status = lua_load(L, LuaStatics::getF, &lf, name.to_charp()); + } if (status) { if (lf.exception) { |