[Freeswitch-trunk] [commit] r12648 - freeswitch/trunk/src/mod/languages/mod_python

FreeSWITCH SVN brian at freeswitch.org
Tue Mar 17 10:23:01 PDT 2009


Author: brian
Date: Tue Mar 17 12:23:01 2009
New Revision: 12648

Log:
MODLANG-106

Modified:
   freeswitch/trunk/src/mod/languages/mod_python/mod_python.c

Modified: freeswitch/trunk/src/mod/languages/mod_python/mod_python.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_python/mod_python.c	(original)
+++ freeswitch/trunk/src/mod/languages/mod_python/mod_python.c	Tue Mar 17 12:23:01 2009
@@ -388,9 +388,6 @@
 
 	switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Python Framework Loading...\n");
 
-	globals.pool = pool;
-	do_config();
-
 	if (!Py_IsInitialized()) {
 
 		// initialize python system
@@ -411,6 +408,8 @@
 		PyEval_ReleaseLock();
 	}
 
+	globals.pool = pool;
+	do_config();
 
 	/* connect my internal structure to the blank pointer passed to me */
 	*module_interface = switch_loadable_module_create_module_interface(pool, modname);



More information about the Freeswitch-trunk mailing list