diff options
author | gordon%netscape.com <devnull@localhost> | 2000-10-13 21:16:30 +0000 |
---|---|---|
committer | gordon%netscape.com <devnull@localhost> | 2000-10-13 21:16:30 +0000 |
commit | 694c7c3e476cb80ac77a0e4b021e5ab8d7fd69e4 (patch) | |
tree | b7965665e1c748af21e89a7661bc3538ccbcb4ae | |
parent | 331525a3ff57970a7810a71e909de4762630afe1 (diff) | |
download | nspr-hg-Netscape_20001031_RELEASE.tar.gz |
Fix for Bug 56170 "After mac goes to sleep, getting IMAP mail locks up machine". Changed case kOTOutStateErr, so that it returns an error. This enables us to detect when a connection is closed out from under us.Netscape_2000_1030_RELEASENetscape_20001031_RELEASENetscape_20001030_RELEASENetscape_20001027_RELEASE
-rw-r--r-- | pr/src/md/mac/macsockotpt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pr/src/md/mac/macsockotpt.c b/pr/src/md/mac/macsockotpt.c index 38524aa4..72100272 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 for error default: err = result; goto ErrorExit; |