]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/dialup.cpp
Sombody committed this with a hard-coded pathname for WXDIR. Fixed.
[wxWidgets.git] / 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);