]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix build on msvc.
authorMichael Jerris <mike@jerris.com>
Sun, 29 Apr 2007 01:51:32 +0000 (01:51 +0000)
committerMichael Jerris <mike@jerris.com>
Sun, 29 Apr 2007 01:51:32 +0000 (01:51 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5037 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c
src/switch_channel.c

index 0499a7ca78aad0d8521bcf1c39de5c1f0be2373e..b67957b4e077c047b56d1d0dbeb677acb325bd91 100644 (file)
@@ -372,8 +372,8 @@ void *SWITCH_THREAD_FUNC sofia_profile_thread_run(switch_thread_t *thread, void
 
        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) {
index e876af85bfb50f8ae92616a9be948e6a246d9a8b..32d61bdcb1dc754f7c5da45bf10ad37cbd893678 100644 (file)
@@ -354,8 +354,8 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_private(switch_channel_t *cha
 
 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);