diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-03-21 11:30:39 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-03-21 11:30:39 +0100 |
commit | 66c08d87a9785e4725a401aff69501d7b72be8f9 (patch) | |
tree | 6b76f4236e6307cbc2ce9ef04edd39dbae0d60b5 | |
parent | d4d29038712cc96ed85f136ba9f6ac4a2a255ed3 (diff) |
Fix unnecessary relogging into same account
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r-- | src/gnunet_chat_lib.c | 3 |
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, if (!handle) return; + if (handle->current == account) + return; + if (handle->current) handle_disconnect(handle); |