summaryrefslogtreecommitdiff
path: root/src/BLua.cc
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-05 07:07:41 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-05 07:07:41 +0200
commit4d77b2060aa76ec194bc643e6b20138a4cd529e9 (patch)
treefc9a9624d72370c67dc2eabcdbf8c67c143205cb /src/BLua.cc
parentf0864213a4175cc77cc84abe56831f294a9c7d25 (diff)
The lua_load operation is a bit complicated, and can't throw EAgain.
Diffstat (limited to 'src/BLua.cc')
-rw-r--r--src/BLua.cc5
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) {