From c986289dbe7edfcee5cd39a61e95f1c4a59ddcde Mon Sep 17 00:00:00 2001 From: octo Date: Sat, 27 May 2006 11:25:55 +0000 Subject: [PATCH] hddtemp.c: Don't try other sockets if one could be opened.. --- src/hddtemp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hddtemp.c b/src/hddtemp.c index cbe6e80a..08bbbc02 100644 --- a/src/hddtemp.c +++ b/src/hddtemp.c @@ -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); -- 2.30.2