From f29524bb7a37db02f5c98854f76e855dbafa6575 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 5 Aug 2013 02:44:56 +0200 Subject: Relaxing the simple context rules a bit. --- src/BLua.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/BLua.cc') diff --git a/src/BLua.cc b/src/BLua.cc index 7eda510..2bc726e 100644 --- a/src/BLua.cc +++ b/src/BLua.cc @@ -870,7 +870,7 @@ bool Balau::Lua::yieldC() throw (GeneralException) { Future * p = (Future *) touserdata(-2); if (p->m_ranOnce) - throw EAgain(p->m_evt); + Task::operationYield(p->m_evt, Task::STACKLESS); resumeC(); return yieldC(); -- cgit v1.2.3