From: Mathieu Parent Date: Thu, 25 Feb 2010 18:26:23 +0000 (+0000) Subject: Skinny: sleep to lower CPU consomption X-Git-Tag: v1.0.6~314 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7491bd639c6a503c8bda6dff6387f1a4c8c8426b;p=thirdparty%2Ffreeswitch.git Skinny: sleep to lower CPU consomption git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16825 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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; }