From 66c08d87a9785e4725a401aff69501d7b72be8f9 Mon Sep 17 00:00:00 2001 From: TheJackiMonster Date: Mon, 21 Mar 2022 11:30:39 +0100 Subject: Fix unnecessary relogging into same account Signed-off-by: TheJackiMonster --- src/gnunet_chat_lib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c index e11c92d..25e670d 100644 --- 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); -- cgit v1.2.3