summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/BLua.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/BLua.h b/includes/BLua.h
index 8756f0f..926782a 100644
--- a/includes/BLua.h
+++ b/includes/BLua.h
@@ -350,7 +350,7 @@ class LuaHelpers : public LuaHelpersBase {
try {
r = method_multiplex_internal(caller, L, proceed, proceed_static, tab, method);
}
- catch (EAgain e) {
+ catch (EAgain & e) {
pushContext(L, [caller, proceed, proceed_static, tab, method](Lua & L) -> int { return method_multiplex_resume(caller, L, proceed, proceed_static, tab, method); }, e.getEvent());
r = L.yield(L.gettop());
}
@@ -364,7 +364,7 @@ class LuaHelpers : public LuaHelpersBase {
try {
r = method_multiplex_internal(caller, L, proceed, proceed_static, tab, method);
}
- catch (EAgain e) {
+ catch (EAgain & e) {
pushContext(L, [caller, proceed, proceed_static, tab, method](Lua & L) -> int { return method_multiplex_resume(caller, L, proceed, proceed_static, tab, method); }, e.getEvent());
r = -1;
}