fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4349acd401
commit
41ee29dfda
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user