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 cbe6e80..08bbbc0 100644 (file)
@@ -158,6 +158,10 @@ static int hddtemp_query_daemon (char *buffer, int buffer_size)
                        fd = -1;
                        continue;
                }
+
+               /* A socket could be opened and connecting succeeded. We're
+                * done. */
+               break;
        }
 
        freeaddrinfo (ai_list);