From: Chris Hanson Date: Thu, 15 Jun 2000 20:04:54 +0000 (+0000) Subject: Fix bug: don't try to send LOGOUT command when socket is closed. X-Git-Tag: 20090517-FFI~3517 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=eacc0c827ef5f85689ca30d65d952d8ba0242770;p=mit-scheme.git Fix bug: don't try to send LOGOUT command when socket is closed. --- diff --git a/v7/src/imail/imail-imap.scm b/v7/src/imail/imail-imap.scm index 09366f3aa..d97b0728d 100644 --- a/v7/src/imail/imail-imap.scm +++ b/v7/src/imail/imail-imap.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: imail-imap.scm,v 1.118 2000/06/14 02:51:25 cph Exp $ +;;; $Id: imail-imap.scm,v 1.119 2000/06/15 20:04:54 cph Exp $ ;;; ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology ;;; @@ -493,7 +493,8 @@ (if (= (imap-connection-reference-count connection) (if (imap-connection-folder connection) 0 1)) (begin - (imap:command:logout connection) + (if (imap-connection-port connection) + (imap:command:logout connection)) (close-imap-connection connection)))) ;;;; Folder datatype