]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Check_Servers(): skip servers already beeing connected
authorAlexander Barton <alex@barton.de>
Tue, 7 Sep 2010 22:45:23 +0000 (00:45 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 7 Sep 2010 22:45:23 +0000 (00:45 +0200)
Let CheckServers() not only skip servers that already have a
connection, but also skip servers to which a new connection is
already beeing established (SERVER_WAIT state).

src/ngircd/conn.c

index acd50bcdcf673d8cfa4ef763a2ffee678daf59ef..a8e93a27e45fecf7a70df4c462c5252411102339 100644 (file)
@@ -1758,8 +1758,8 @@ Check_Servers(void)
 
        /* Check all configured servers */
        for (i = 0; i < MAX_SERVERS; i++) {
-               if (Conf_Server[i].conn_id > NONE)
-                       continue;       /* Already connected */
+               if (Conf_Server[i].conn_id != NONE)
+                       continue;       /* Already establishing or connected */
                if (!Conf_Server[i].host[0] || !Conf_Server[i].port > 0)
                        continue;       /* No host and/or port configured */
                if (Conf_Server[i].flags & CONF_SFLAG_DISABLED)