-fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 19 Apr 2012 19:28:50 +0000 (19:28 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 19 Apr 2012 19:28:50 +0000 (19:28 +0000)
src/util/client.c

index aa80d6b72100489438ed87f16a0f3729d72c1108..ea335b19486be00e2e4ddb9d7a979663aaaa2aff 100644 (file)
@@ -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);