diff libfdcore/messages.c @ 824:89c5849b0832

Allow retransmission of messages on timeout
author Sebastien Decugis <sdecugis@freediameter.net>
date Thu, 13 Sep 2012 13:41:29 +0200
parents 4a9f08d6b6ba
children 1d2721778c7a
line wrap: on
line diff
--- a/libfdcore/messages.c	Wed Sep 12 20:43:51 2012 +0200
+++ b/libfdcore/messages.c	Thu Sep 13 13:41:29 2012 +0200
@@ -306,9 +306,7 @@
 	CHECK_PARAMS( pmsg );
 	
 	/* Save the callback in the message */
-	if (anscb) {
-		CHECK_FCT(  fd_msg_anscb_associate( *pmsg, anscb, data, NULL /* we should maybe use a safeguard here like 1 hour or so? */ )  );
-	}
+	CHECK_FCT(  fd_msg_anscb_associate( *pmsg, anscb, data, NULL /* we should maybe use a safeguard here like 1 hour or so? */ )  );
 	
 	/* Post the message in the outgoing queue */
 	CHECK_FCT( fd_fifo_post(fd_g_outgoing, pmsg) );
"Welcome to our mercurial repository"