diff options
Diffstat (limited to 'Sluift/client.cpp')
-rw-r--r-- | Sluift/client.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Sluift/client.cpp b/Sluift/client.cpp index e2ba480..63e3bf1 100644 --- a/Sluift/client.cpp +++ b/Sluift/client.cpp @@ -50,12 +50,4 @@ static inline int getGlobalTimeout(lua_State* L) { } -static inline bool getGlobalDebug(lua_State* L) { - lua_rawgeti(L, LUA_REGISTRYINDEX, Sluift::globals.moduleLibIndex); - lua_getfield(L, -1, "debug"); - int result = lua_toboolean(L, -1); - lua_pop(L, 2); - return result; -} - static void addPayloadsToTable(lua_State* L, const std::vector<boost::shared_ptr<Payload> >& payloads) { if (!payloads.empty()) { @@ -111,5 +103,4 @@ SLUIFT_LUA_FUNCTION(Client, async_connect) { } } - client->setTraceEnabled(getGlobalDebug(L)); client->connect(host, port); return 0; |