From eacc0c827ef5f85689ca30d65d952d8ba0242770 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Thu, 15 Jun 2000 20:04:54 +0000 Subject: [PATCH] Fix bug: don't try to send LOGOUT command when socket is closed. --- v7/src/imail/imail-imap.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.25.1