git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9065 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-07-16 22:04:31 +00:00
parent 61f3d6798b
commit b5751a46a9

View File

@ -53,8 +53,10 @@ void Session::setLUA(lua_State * state)
sanity_check_noreturn;
L = state;
lua_setglobal(L, uuid);
lua_getfield(L, LUA_GLOBALSINDEX, uuid ? uuid : "");
if (uuid) {
lua_setglobal(L, uuid);
lua_getfield(L, LUA_GLOBALSINDEX, uuid);
}
}