(Fopen_network_stream): Always call turn_on_atimers around connect.

This commit is contained in:
Kim F. Storm
2002-03-03 00:31:22 +00:00
parent 6a22cdf4bf
commit f40f9848b6

View File

@@ -2037,14 +2037,12 @@ NON-BLOCKING is optional arg requesting an non-blocking connect.
This used to be conditioned by HAVE_GETADDRINFO. Why? */
if (!is_non_blocking)
turn_on_atimers (0);
turn_on_atimers (0);
ret = connect (s, lres->ai_addr, lres->ai_addrlen);
xerrno = errno;
if (!is_non_blocking)
turn_on_atimers (1);
turn_on_atimers (1);
if (ret == 0 || xerrno == EISCONN)
{