Skinny: sleep to lower CPU consomption

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16825 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Parent 2010-02-25 18:26:23 +00:00
parent a15fd5a9a0
commit 7491bd639c
1 changed files with 3 additions and 0 deletions

View File

@ -360,6 +360,9 @@ switch_status_t skinny_read_packet(listener_t *listener, skinny_message_t **req)
switch_clear_flag_locked(listener, LFLAG_RUNNING);
return SWITCH_STATUS_FALSE;
}
if (do_sleep) {
switch_cond_next();
}
}
return SWITCH_STATUS_SUCCESS;
}