git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder 1999-11-06 16:56:47 +00:00
parent 4349acd401
commit 41ee29dfda

View File

@ -454,10 +454,11 @@ wxDialUpManagerImpl::CheckConnect(void)
return -1; // no info
}
if( connect(sockfd, (struct sockaddr *) &serv_addr, sizeof(serv_addr)) < 0)
if( connect(sockfd, (struct sockaddr *) &serv_addr,
sizeof(serv_addr)) >= 0)
{
close(sockfd);
return 1; // we can connect, so we have a network!
return 1; // we cant connect, so we have a network!
}
//connected!
close(sockfd);