Remove check against fd->secret->md.connectionReturnValue as it always returns 0. Fixing page not loading due to nonblocking connection problem.
authorseawood%netscape.com
Thu, 31 Jan 2002 07:43:22 +0000
changeset 2212 a9545bcf8e2fffefc873dcacf359f621e8082395
parent 2207 e19c5632dbfb503806cc44521ca746f1a98f2849
child 2213 4d3d8a7cc2b1cd67626650fc7fa42a6f76d4d10a
push idunknown
push userunknown
push dateunknown
bugs121327
Remove check against fd->secret->md.connectionReturnValue as it always returns 0. Fixing page not loading due to nonblocking connection problem. Bug #121327 r=arougthopher@lizardland.net
pr/src/md/beos/bnet.c
--- a/pr/src/md/beos/bnet.c
+++ b/pr/src/md/beos/bnet.c
@@ -807,24 +807,16 @@ PRInt32 rv, err;
 
 #ifndef BONE_VERSION
 PRInt32
 _MD_beos_get_nonblocking_connect_error(PRFileDesc *fd)
 {
     int rv;
     int flags = 0;
 
-    if( fd->secret->md.connectValueValid == PR_TRUE )
-
-	if( fd->secret->md.connectReturnValue == -1 )
-
-	    return fd->secret->md.connectReturnError;
-	else
-	    return 0;  /* No error */
-
     rv = recv(fd->secret->md.osfd, NULL, 0, flags);
     PR_ASSERT(-1 == rv || 0 == rv);
     if (-1 == rv && errno != EAGAIN && errno != EWOULDBLOCK) {
         return errno;
     }
     return 0;  /* no error */
 }
 #else