fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -454,10 +454,11 @@ wxDialUpManagerImpl::CheckConnect(void)
|
|||||||
return -1; // no info
|
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);
|
close(sockfd);
|
||||||
return 1; // we can connect, so we have a network!
|
return 1; // we cant connect, so we have a network!
|
||||||
}
|
}
|
||||||
//connected!
|
//connected!
|
||||||
close(sockfd);
|
close(sockfd);
|
||||||
|
Reference in New Issue
Block a user