From bfcbae7b627c1b35e06874e9119d4688a6ca7132 Mon Sep 17 00:00:00 2001
From: Roman Tsisyk <roman@tsisyk.com>
Date: Wed, 5 Jun 2013 12:53:46 +0400
Subject: [PATCH] Place throw into right place box/lua/init.cc

---
 src/lua/init.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lua/init.cc b/src/lua/init.cc
index e78dfcd67b..3876e50a23 100644
--- a/src/lua/init.cc
+++ b/src/lua/init.cc
@@ -672,8 +672,8 @@ box_lua_fiber_run_detached(va_list ap)
 		lua_call(L, lua_gettop(L) - 1, LUA_MULTRET);
 		cleanup();
 	} catch (const FiberCancelException &e) {
-		throw;
 		cleanup();
+		throw;
 	} catch (const Exception &e) {
 		e.log();
 		cleanup();
-- 
GitLab