summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgordon%netscape.com <devnull@localhost>2000-10-12 22:39:16 +0000
committergordon%netscape.com <devnull@localhost>2000-10-12 22:39:16 +0000
commit6a75bd25c60e3a1d8388a96a0dffdac9426213b3 (patch)
tree6f2d0695637022e7912c35642d1063d403d13b19
parent3630369098fba08f9321f02dfff5b8c755f320d2 (diff)
downloadnspr-hg-6a75bd25c60e3a1d8388a96a0dffdac9426213b3.tar.gz
Fix for bug 65170 "After mac goes to sleep, getting IMAP mail locks up machine". r=pinkerton, sr=sfraser. rtm+.
Moved case for kOTOutStateErr in SendReceiveStream() so it will return an error.
-rw-r--r--pr/src/md/mac/macsockotpt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pr/src/md/mac/macsockotpt.c b/pr/src/md/mac/macsockotpt.c
index 4970a885..53023ad0 100644
--- a/pr/src/md/mac/macsockotpt.c
+++ b/pr/src/md/mac/macsockotpt.c
@@ -1465,9 +1465,6 @@ static PRInt32 SendReceiveStream(PRFileDesc *fd, void *buf, PRInt32 amount,
return result;
} else {
switch (result) {
- case kOTOutStateErr: // it has been closed
- return 0;
-
case kOTLookErr:
PR_ASSERT(!"call to OTLook() required after all.");
break;
@@ -1487,6 +1484,7 @@ static PRInt32 SendReceiveStream(PRFileDesc *fd, void *buf, PRInt32 amount,
goto ErrorExit;
break;
+ case kOTOutStateErr: // it has been closed, fall through to handle error
default:
err = result;
goto ErrorExit;