Code

hddtemp.c: Don't try other sockets if one could be opened..
authorocto <octo>
Sat, 27 May 2006 11:25:55 +0000 (11:25 +0000)
committerocto <octo>
Sat, 27 May 2006 11:25:55 +0000 (11:25 +0000)
src/hddtemp.c

index cbe6e80ab541f6f0b0a003f74d93d7bccfa8a90f..08bbbc0270bc5a0c0a4b3c712a4f7bb6cfea1382 100644 (file)
@@ -158,6 +158,10 @@ static int hddtemp_query_daemon (char *buffer, int buffer_size)
                        fd = -1;
                        continue;
                }
                        fd = -1;
                        continue;
                }
+
+               /* A socket could be opened and connecting succeeded. We're
+                * done. */
+               break;
        }
 
        freeaddrinfo (ai_list);
        }
 
        freeaddrinfo (ai_list);