[Freeswitch-svn] [commit] r5451 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Sun Jun 24 00:06:05 EDT 2007
Author: mikej
Date: Sun Jun 24 00:06:05 2007
New Revision: 5451
Modified:
freeswitch/trunk/src/switch_channel.c
Log:
protect the hash.
Modified: freeswitch/trunk/src/switch_channel.c
==============================================================================
--- freeswitch/trunk/src/switch_channel.c (original)
+++ freeswitch/trunk/src/switch_channel.c Sun Jun 24 00:06:05 2007
@@ -772,6 +772,8 @@
const void *var;
char state_num[25];
+ switch_mutex_lock(channel->profile_mutex);
+
if ((caller_profile = switch_channel_get_caller_profile(channel))) {
originator_caller_profile = caller_profile->originator_caller_profile;
originatee_caller_profile = caller_profile->originatee_caller_profile;
@@ -818,7 +820,7 @@
}
}
-
+ switch_mutex_unlock(channel->profile_mutex);
}
More information about the Freeswitch-svn
mailing list