]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed
authorKarsten Ballüder <ballueder@usa.net>
Sat, 6 Nov 1999 16:56:47 +0000 (16:56 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Sat, 6 Nov 1999 16:56:47 +0000 (16:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/dialup.cpp

index 5b928f8b9eb2d24e54d98d3853441743448268d3..34a7906ac8d23389b2dbdb3995848e2c425889f8 100644 (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);