libgnunetchat

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

commit 66c08d87a9785e4725a401aff69501d7b72be8f9
parent d4d29038712cc96ed85f136ba9f6ac4a2a255ed3
Author: TheJackiMonster <thejackimonster@gmail.com>
Date:   Mon, 21 Mar 2022 11:30:39 +0100

Fix unnecessary relogging into same account

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

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

diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c @@ -136,6 +136,9 @@ GNUNET_CHAT_connect (struct GNUNET_CHAT_Handle *handle, if (!handle) return; + if (handle->current == account) + return; + if (handle->current) handle_disconnect(handle);