libgnunetchat

library for GNUnet Messenger
Log | Files | Refs | README | LICENSE

commit a0d9fe355a8b12109d15c9a82f01a3d2b0dc1119
parent 77e4525e6477ddda9b025261be2e1c73d86a1fe9
Author: TheJackiMonster <thejackimonster@gmail.com>
Date:   Sun, 13 Feb 2022 18:48:24 +0100

Fixed issue with second account connection in a row

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>

Diffstat:
Msrc/gnunet_chat_handle.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/gnunet_chat_handle.c b/src/gnunet_chat_handle.c @@ -247,6 +247,11 @@ handle_disconnect (struct GNUNET_CHAT_Handle *handle) GNUNET_CONTAINER_multihashmap_destroy(handle->contexts); GNUNET_CONTAINER_multihashmap_destroy(handle->files); + handle->files = NULL; + handle->contexts = NULL; + handle->contacts = NULL; + handle->groups = NULL; + handle->current = NULL; handle_update_key(handle); }