aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-03-21 11:30:39 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2022-03-21 11:30:39 +0100
commit66c08d87a9785e4725a401aff69501d7b72be8f9 (patch)
tree6b76f4236e6307cbc2ce9ef04edd39dbae0d60b5
parentd4d29038712cc96ed85f136ba9f6ac4a2a255ed3 (diff)
downloadlibgnunetchat-66c08d87a9785e4725a401aff69501d7b72be8f9.tar.gz
libgnunetchat-66c08d87a9785e4725a401aff69501d7b72be8f9.zip
Fix unnecessary relogging into same account
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r--src/gnunet_chat_lib.c3
1 files changed, 3 insertions, 0 deletions
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,
136 if (!handle) 136 if (!handle)
137 return; 137 return;
138 138
139 if (handle->current == account)
140 return;
141
139 if (handle->current) 142 if (handle->current)
140 handle_disconnect(handle); 143 handle_disconnect(handle);
141 144