Revision
16825
Author
sathieu
Date
2010-02-25 12:26:23 -0600 (Thu, 25 Feb 2010)

Log Message

Skinny: sleep to lower CPU consomption

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_skinny/skinny_protocol.c (16824 => 16825)


--- freeswitch/trunk/src/mod/endpoints/mod_skinny/skinny_protocol.c	2010-02-25 18:17:38 UTC (rev 16824)
+++ freeswitch/trunk/src/mod/endpoints/mod_skinny/skinny_protocol.c	2010-02-25 18:26:23 UTC (rev 16825)
@@ -360,6 +360,9 @@
 			switch_clear_flag_locked(listener, LFLAG_RUNNING);
 			return SWITCH_STATUS_FALSE;
 		}
+		if (do_sleep) {
+			switch_cond_next();
+		}
 	}
 	return SWITCH_STATUS_SUCCESS;
 }