From: Karsten Ballüder Date: Sat, 6 Nov 1999 16:56:47 +0000 (+0000) Subject: fixed X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/41ee29dfda753c5786bfdbb68cd44a30e5709db4 fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/dialup.cpp b/src/unix/dialup.cpp index 5b928f8b9e..34a7906ac8 100644 --- a/src/unix/dialup.cpp +++ b/src/unix/dialup.cpp @@ -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);