fix
[oweals/gnunet.git] / src / util / client.c
index 5d5387ef91a2dab2f0d4d940c6b16bff24e45d1f..d2f347947c4151e21a0906005015d12c2cd60bd0 100644 (file)
@@ -241,11 +241,6 @@ struct GNUNET_CLIENT_Connection
    */
   int in_receive;
 
-  /**
-   * Are we ignoring shutdown signals?
-   */
-  int ignore_shutdown;
-
   /**
    * How often have we tried to connect?
    */
@@ -381,22 +376,6 @@ GNUNET_CLIENT_connect (const char *service_name,
 }
 
 
-/**
- * Configure this connection to ignore shutdown signals.
- *
- * @param h client handle
- * @param do_ignore GNUNET_YES to ignore, GNUNET_NO to restore default
- */
-void
-GNUNET_CLIENT_ignore_shutdown (struct GNUNET_CLIENT_Connection *h,
-                              int do_ignore)
-{
-  h->ignore_shutdown = do_ignore;
-  if (h->sock != NULL)
-    GNUNET_CONNECTION_ignore_shutdown (h->sock, do_ignore);
-}
-
-
 /**
  * Destroy connection with the service.  This will automatically
  * cancel any pending "receive" request (however, the handler will
@@ -960,8 +939,6 @@ client_delayed_retry (void *cls,
        GNUNET_SCHEDULER_add_delayed (delay, &client_delayed_retry, th);
       return;
     }
-  GNUNET_CONNECTION_ignore_shutdown (th->sock->sock,
-                                    th->sock->ignore_shutdown);
   th->th =
     GNUNET_CONNECTION_notify_transmit_ready (th->sock->sock, th->size,
                                             GNUNET_TIME_absolute_get_remaining