aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-13 20:55:36 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-13 20:55:36 +0000
commitf84a545ddf6cfb8b4cf59c9ef40117cd23d836b4 (patch)
tree0c37129fd3886416c64bba2a9e7c5eef6334c7b3
parent42f0a310ce2d0c9c2cd4b62e8da617d8bc9b8290 (diff)
downloadgnunet-f84a545ddf6cfb8b4cf59c9ef40117cd23d836b4.tar.gz
gnunet-f84a545ddf6cfb8b4cf59c9ef40117cd23d836b4.zip
removing client code
-rw-r--r--src/ats/gnunet-service-ats.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ats/gnunet-service-ats.c b/src/ats/gnunet-service-ats.c
index dff19abea..3e1a5e5ad 100644
--- a/src/ats/gnunet-service-ats.c
+++ b/src/ats/gnunet-service-ats.c
@@ -62,6 +62,21 @@ handle_ats_start (void *cls, struct GNUNET_SERVER_Client *client,
62 62
63 63
64/** 64/**
65 * A client disconnected from us. Tear down the local client
66 * record.
67 *
68 * @param cls unused
69 * @param client handle of the client
70 */
71static void
72client_disconnect_handler (void *cls, struct GNUNET_SERVER_Client *client)
73{
74 GAS_remove_scheduling_client (client);
75 GAS_remove_performance_client (client);
76}
77
78
79/**
65 * Task run during shutdown. 80 * Task run during shutdown.
66 * 81 *
67 * @param cls unused 82 * @param cls unused
@@ -101,6 +116,9 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
101 {NULL, NULL, 0, 0} 116 {NULL, NULL, 0, 0}
102 }; 117 };
103 GAS_addresses_init (); 118 GAS_addresses_init ();
119 GNUNET_SERVER_disconnect_notify (server,
120 &client_disconnect_handler,
121 NULL);
104 GNUNET_SERVER_add_handlers (server, handlers); 122 GNUNET_SERVER_add_handlers (server, handlers);
105 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &cleanup_task, 123 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &cleanup_task,
106 NULL); 124 NULL);