[Freeswitch-svn] [commit] r5037 - in freeswitch/trunk/src: . mod/endpoints/mod_sofia

Freeswitch SVN mikej at freeswitch.org
Sat Apr 28 21:51:32 EDT 2007


Author: mikej
Date: Sat Apr 28 21:51:32 2007
New Revision: 5037

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
   freeswitch/trunk/src/switch_channel.c

Log:
fix build on msvc.

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Sat Apr 28 21:51:32 2007
@@ -372,8 +372,8 @@
 
 	su_root_run(profile->s_root);
 	nua_destroy(profile->nua);
-	while(0 && profile->inuse) {
-		switch_yield(1000000);
+	while(profile->inuse) {
+		switch_yield(100000);
 	}
 
 	if (switch_event_create(&s_event, SWITCH_EVENT_UNPUBLISH) == SWITCH_STATUS_SUCCESS) {

Modified: freeswitch/trunk/src/switch_channel.c
==============================================================================
--- freeswitch/trunk/src/switch_channel.c	(original)
+++ freeswitch/trunk/src/switch_channel.c	Sat Apr 28 21:51:32 2007
@@ -354,8 +354,8 @@
 
 SWITCH_DECLARE(void *) switch_channel_get_private(switch_channel_t *channel, char *key)
 {
-	assert(channel != NULL);
 	void *val;
+	assert(channel != NULL);
 	switch_mutex_lock(channel->profile_mutex);
 	val = switch_core_hash_find(channel->private_hash, key);
 	switch_mutex_unlock(channel->profile_mutex);



More information about the Freeswitch-svn mailing list