diff options
Diffstat (limited to 'hardinfo2/arch/linux/common')
| -rw-r--r-- | hardinfo2/arch/linux/common/sensors.h | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/hardinfo2/arch/linux/common/sensors.h b/hardinfo2/arch/linux/common/sensors.h index ae68c22a..abbe90b4 100644 --- a/hardinfo2/arch/linux/common/sensors.h +++ b/hardinfo2/arch/linux/common/sensors.h @@ -319,6 +319,7 @@ static void read_sensors_hddtemp(void)      if ((s = sock_connect("127.0.0.1", 7634))) {  	while (!len)  	    len = sock_read(s, buffer, sizeof(buffer)); +        sock_close(s);  	if (len > 2 && buffer[0] == '|' && buffer[1] == '/') {  	    gchar **disks; @@ -353,7 +354,6 @@ static void read_sensors_hddtemp(void)  	g_free(old);  	old = NULL;      } -    sock_close(s);      if (old) {  	sensors = g_strconcat(sensors, "\n", old, NULL); | 
