# HG changeset patch # User Sebastien Decugis # Date 1270193860 -32400 # Node ID 07624e65c7e0fc799a0d76c12f3f86771cb7b86c # Parent 6e6ada749a119d22c83a6752369d4622050fc4a5 Loop anyway until we get a real message or an error diff -r 6e6ada749a11 -r 07624e65c7e0 freeDiameter/cnxctx.c --- 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");