trying to port statvfs call to BSD
[oweals/gnunet.git] / src / util / test_server_with_client.c
index 68b842ef8c769ff530cc33d86460bdf77dddd358..b28b3b69f0705f0c4e82981bca9191e767194b2d 100644 (file)
@@ -93,7 +93,7 @@ recv_cb (void *cls,
       break;
     case 4:
       ok++;
-      GNUNET_CLIENT_disconnect (client);
+      GNUNET_CLIENT_disconnect (client, GNUNET_YES);
       GNUNET_SERVER_receive_done (argclient, GNUNET_OK);
       break;
     default:
@@ -123,6 +123,8 @@ clean_up (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 static void
 notify_disconnect (void *cls, struct GNUNET_SERVER_Client *client)
 {
+  if (client == NULL)
+    return;
   GNUNET_assert (ok == 5);
   ok = 0;
   GNUNET_SCHEDULER_add_now (sched,