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

index ea335b19486be00e2e4ddb9d7a979663aaaa2aff..6e270c0c1faf2e6f6d1aca59b91b3eb1185e6f83 100644 (file)
@@ -842,11 +842,10 @@ 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);
-  conn->th = GNUNET_CLIENT_notify_transmit_ready (conn,
-                                                 sizeof (struct GNUNET_MessageHeader),
-                                                 timeout, GNUNET_YES, &write_test,
-                                                 conn);
-  if (NULL == conn->th)
+  if (NULL == GNUNET_CLIENT_notify_transmit_ready (conn,
+                                                  sizeof (struct GNUNET_MessageHeader),
+                                                  timeout, GNUNET_YES, &write_test,
+                                                  conn))
   {
     LOG (GNUNET_ERROR_TYPE_WARNING,
          _("Failure to transmit request to service `%s'\n"), service);