From 992c8ec7571286503b6cc748e77189381fc380bf Mon Sep 17 00:00:00 2001
From: Russell Bryant <russell@russellbryant.com>
Date: Thu, 21 Jun 2007 21:16:36 +0000
Subject: [PATCH] Merged revisions 70883 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r70883 | russell | 2007-06-21 16:14:53 -0500 (Thu, 21 Jun 2007) | 3 lines

Put the thread reading from the socket back in the idle list if it deferred the
processing of a full frame to another thread

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70887 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 channels/chan_iax2.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 424ff211d2..23875e119d 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -6636,6 +6636,7 @@ static int socket_read(int *id, int fd, short events, void *cbdata)
 			   so queue it up for processing later. */
 			defer_full_frame(thread);
 			AST_LIST_UNLOCK(&active_list);
+			insert_idle_thread(thread);
 			return 1;
 		} else {
 			/* this thread is going to process this frame, so mark it */
-- 
GitLab