mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
Bugfix: read_tcp treated a succesfull connection as failed and vice versa
This commit is contained in:
parent
6b3c69882a
commit
36ebcf347d
@ -87,7 +87,7 @@ void print_read_tcp(struct text_object *obj, char *p, int p_max_size)
|
||||
addr.sin_family = AF_INET;
|
||||
addr.sin_port = rtd->port;
|
||||
memcpy(&addr.sin_addr, he->h_addr, he->h_length);
|
||||
if (!connect(sock, (struct sockaddr*)&addr, sizeof(struct sockaddr))) {
|
||||
if (connect(sock, (struct sockaddr*)&addr, sizeof(struct sockaddr)) != 0) {
|
||||
NORM_ERR("read_tcp: Couldn't create a connection");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user