From fe5ca948d41c782d3a5101d5ed922c1aba314559 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 19 Apr 2012 19:28:50 +0000 Subject: [PATCH] -fix --- src/util/client.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/util/client.c b/src/util/client.c index aa80d6b72..ea335b194 100644 --- a/src/util/client.c +++ b/src/util/client.c @@ -842,12 +842,11 @@ GNUNET_CLIENT_service_test (const char *service, conn->test_cb = task; conn->test_cb_cls = task_cls; conn->test_deadline = GNUNET_TIME_relative_to_absolute (timeout); - - if (NULL == - GNUNET_CLIENT_notify_transmit_ready (conn, - sizeof (struct GNUNET_MessageHeader), - timeout, GNUNET_YES, &write_test, - conn)) + conn->th = GNUNET_CLIENT_notify_transmit_ready (conn, + sizeof (struct GNUNET_MessageHeader), + timeout, GNUNET_YES, &write_test, + conn); + if (NULL == conn->th) { LOG (GNUNET_ERROR_TYPE_WARNING, _("Failure to transmit request to service `%s'\n"), service); -- 2.25.1