]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-lua: Remove obsolete threading check
authorJosef 'Jeff' Sipek <jeff.sipek@open-xchange.com>
Thu, 6 May 2021 19:17:05 +0000 (15:17 -0400)
committerJosef 'Jeff' Sipek <jeff.sipek@open-xchange.com>
Thu, 6 May 2021 19:17:05 +0000 (15:17 -0400)
We support multiple lua thread as long as they are created using the
dlua_script_new_thread() helper.

src/lib-lua/dlua-script.c

index 8ed31a7010a12db541364458302fdd4c5b611c4d..01a14786edd67e861adf6a6d8649e02900383e28 100644 (file)
@@ -97,15 +97,6 @@ struct dlua_script *dlua_script_from_state(lua_State *L)
        lua_pop(L, 1);
        i_assert(script != NULL);
 
-       if (script->L != L) {
-               static bool warned;
-
-               if (!warned) {
-                       i_warning("detected threading in lua script - not supported");
-                       warned = TRUE; /* warn only once */
-               }
-       }
-
        return script;
 }