Mark server down if "disconnected" called.
authorPekka Riikonen <priikone@silcnet.org>
Thu, 27 Oct 2005 18:33:55 +0000 (18:33 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Thu, 27 Oct 2005 18:33:55 +0000 (18:33 +0000)
apps/silcmap/silcmap_client.c

index a46f979607ac115c8829bd0c73beb9652de54715..361a9f0a093aa7bb8569fc9bdcaa548ba65f05b8 100644 (file)
@@ -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;
 }