From 7491bd639c6a503c8bda6dff6387f1a4c8c8426b Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Thu, 25 Feb 2010 18:26:23 +0000 Subject: [PATCH] Skinny: sleep to lower CPU consomption git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16825 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_skinny/skinny_protocol.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mod/endpoints/mod_skinny/skinny_protocol.c b/src/mod/endpoints/mod_skinny/skinny_protocol.c index 153e05a678..9ce4ad6ec7 100644 --- a/src/mod/endpoints/mod_skinny/skinny_protocol.c +++ b/src/mod/endpoints/mod_skinny/skinny_protocol.c @@ -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; }