[Freeswitch-svn] [commit] r11493 - freeswitch/trunk/src/mod/event_handlers/mod_erlang_event

FreeSWITCH SVN andrew at freeswitch.org
Mon Jan 26 12:50:17 PST 2009


Author: andrew
Date: Mon Jan 26 14:50:17 2009
New Revision: 11493

Log:
Fix a couple minor bugs


Modified:
   freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c

Modified: freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c	(original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_erlang_event/mod_erlang_event.c	Mon Jan 26 14:50:17 2009
@@ -334,7 +334,7 @@
 
 	switch_mutex_lock(listener->session_mutex);
 	for (s = listener->session_list; s; s = s->next) {
-		if (s->process.type == ERLANG_PID && ei_compare_pids(pid, &s->process.pid)) {
+		if (s->process.type == ERLANG_PID && !ei_compare_pids(pid, &s->process.pid)) {
 			break;
 		}
 	}
@@ -1000,7 +1000,7 @@
 
 			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "got pid!\n");
 
-			ei_link(listener, pid, ei_self(listener->ec));
+			ei_link(listener, ei_self(listener->ec), pid);
 
 			session_element->process.type = ERLANG_PID;
 			memcpy(&session_element->process.pid, pid, sizeof(erlang_pid));



More information about the Freeswitch-svn mailing list