]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3925 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 23 Feb 2012 20:32:25 +0000 (14:32 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 23 Feb 2012 20:32:25 +0000 (14:32 -0600)
src/mod/languages/mod_lua/mod_lua.cpp

index 64f80115864a25035f12b0350033e86fbd4f4a1b..765bdfcc9804d2b89507054609263ccd4e440979 100644 (file)
@@ -371,6 +371,8 @@ static switch_status_t do_config(void)
                        if (!strcmp(var, "startup-script")) {
                                if (val) {
                                        lua_thread(val);
+                                       /* wait 10ms to avoid lua init issues */
+                                       switch_yield(10000);
                                }
                        }
                }