[asterisk-commits] file: trunk r84368 - /trunk/main/rtp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 2 08:58:20 CDT 2007


Author: file
Date: Tue Oct  2 08:58:19 2007
New Revision: 84368

URL: http://svn.digium.com/view/asterisk?view=rev&rev=84368
Log:
Don't swap channel priority if using epoll as polling should/will only happen off the first channel.
(closes issue #10867)
Reported by: phsultan

Modified:
    trunk/main/rtp.c

Modified: trunk/main/rtp.c
URL: http://svn.digium.com/view/asterisk/trunk/main/rtp.c?view=diff&rev=84368&r1=84367&r2=84368
==============================================================================
--- trunk/main/rtp.c (original)
+++ trunk/main/rtp.c Tue Oct  2 08:58:19 2007
@@ -3586,9 +3586,11 @@
 			ast_frfree(fr);
 		}
 		/* Swap priority */
+#ifndef HAVE_EPOLL
 		cs[2] = cs[0];
 		cs[0] = cs[1];
 		cs[1] = cs[2];
+#endif
 	}
 
 	/* If we are totally avoiding the core, then restore our link to it */




More information about the asterisk-commits mailing list