From: octo Date: Sat, 27 May 2006 11:25:55 +0000 (+0000) Subject: hddtemp.c: Don't try other sockets if one could be opened.. X-Git-Tag: svn-trunk~18 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=c986289dbe7edfcee5cd39a61e95f1c4a59ddcde;p=collectd.git hddtemp.c: Don't try other sockets if one could be opened.. --- 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);