From: Pekka Riikonen Date: Thu, 27 Oct 2005 18:33:55 +0000 (+0000) Subject: Mark server down if "disconnected" called. X-Git-Tag: 1.2.beta1~788 X-Git-Url: http://git.silcnet.org/gitweb/?p=crypto.git;a=commitdiff_plain;h=c14a864b8a83b72516d5db75d19fbbf4bb18ad44 Mark server down if "disconnected" called. --- diff --git a/apps/silcmap/silcmap_client.c b/apps/silcmap/silcmap_client.c index a46f9796..361a9f0a 100644 --- a/apps/silcmap/silcmap_client.c +++ b/apps/silcmap/silcmap_client.c @@ -544,6 +544,11 @@ silc_disconnected(SilcClient client, SilcClientConnection conn, SILC_LOG_DEBUG(("Disconnected from server %s:%d", conn->remote_host, conn->remote_port)); + /* Mark that this server is down. */ + silc_schedule_task_add(map->client->schedule, 0, + silc_map_connect_timeout, mapconn, 0, 1, + SILC_TASK_TIMEOUT, SILC_TASK_PRI_NORMAL); + mapconn->conn = NULL; }