changeset 250:07624e65c7e0

Loop anyway until we get a real message or an error
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 02 Apr 2010 16:37:40 +0900
parents 6e6ada749a11
children 52c1547dab42
files freeDiameter/cnxctx.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/freeDiameter/cnxctx.c	Fri Apr 02 15:55:26 2010 +0900
+++ b/freeDiameter/cnxctx.c	Fri Apr 02 16:37:40 2010 +0900
@@ -739,7 +739,7 @@
 		
 		CHECK_FCT_DO( fd_event_send( Target_Queue(conn), event, bufsz, buf), goto fatal );
 		
-	} while (conn->cc_loop);
+	} while (conn->cc_loop || (event != FDEVP_CNX_MSG_RECV));
 	
 out:
 	TRACE_DEBUG(FULL, "Thread terminated");	
"Welcome to our mercurial repository"