From 41ee29dfda753c5786bfdbb68cd44a30e5709db4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karsten=20Ball=C3=BCder?= Date: Sat, 6 Nov 1999 16:56:47 +0000 Subject: [PATCH] fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/dialup.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);