diff options
Diffstat (limited to 'src/gnunet_chat_handle_intern.c')
-rw-r--r-- | src/gnunet_chat_handle_intern.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gnunet_chat_handle_intern.c b/src/gnunet_chat_handle_intern.c index d275aaf..6e158db 100644 --- a/src/gnunet_chat_handle_intern.c +++ b/src/gnunet_chat_handle_intern.c | |||
@@ -34,7 +34,19 @@ | |||
34 | #define GNUNET_UNUSED __attribute__ ((unused)) | 34 | #define GNUNET_UNUSED __attribute__ ((unused)) |
35 | 35 | ||
36 | void | 36 | void |
37 | on_handle_arm_connection(void *cls, int connected) | 37 | on_handle_shutdown(void *cls) |
38 | { | ||
39 | struct GNUNET_CHAT_Handle *chat = cls; | ||
40 | |||
41 | GNUNET_assert((chat) && (chat->shutdown_hook)); | ||
42 | chat->shutdown_hook = NULL; | ||
43 | |||
44 | handle_destroy(chat); | ||
45 | } | ||
46 | |||
47 | void | ||
48 | on_handle_arm_connection(void *cls, | ||
49 | int connected) | ||
38 | { | 50 | { |
39 | struct GNUNET_CHAT_Handle *chat = cls; | 51 | struct GNUNET_CHAT_Handle *chat = cls; |
40 | 52 | ||