From 13f6f51b058dd0082d1aa84797a34efecb56f272 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Sun, 18 Feb 2001 10:57:52 +0000 Subject: [PATCH] update. --- lib/silcclient/client.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/silcclient/client.c b/lib/silcclient/client.c index bfb38375..29a352f7 100644 --- a/lib/silcclient/client.c +++ b/lib/silcclient/client.c @@ -1833,6 +1833,10 @@ void silc_client_receive_new_id(SilcClient client, SilcIDPayload idp) { SilcClientConnection conn = (SilcClientConnection)sock->user_data; + int connecting = FALSE; + + if (!conn->local_entry) + connecting = TRUE; /* Delete old ID from ID cache */ silc_idcache_del_by_id(conn->client_cache, SILC_ID_CLIENT, conn->local_id); @@ -1867,7 +1871,8 @@ void silc_client_receive_new_id(SilcClient client, /* Notify application of successful connection. We do it here now that we've received the Client ID and are allowed to send traffic. */ - client->ops->connect(client, conn, TRUE); + if (connecting) + client->ops->connect(client, conn, TRUE); } /* Processed received Channel ID for a channel. This is called when client -- 2.24.0