From: Pekka Riikonen Date: Sun, 18 Feb 2001 10:57:52 +0000 (+0000) Subject: update. X-Git-Tag: SILC.0.1~212 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=13f6f51b058dd0082d1aa84797a34efecb56f272 update. --- 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