Fix bug: don't try to send LOGOUT command when socket is closed.
authorChris Hanson <org/chris-hanson/cph>
Thu, 15 Jun 2000 20:04:54 +0000 (20:04 +0000)
committerChris Hanson <org/chris-hanson/cph>
Thu, 15 Jun 2000 20:04:54 +0000 (20:04 +0000)
v7/src/imail/imail-imap.scm

index 09366f3aae483a5a9d0d4d66dbcd709a301e36ba..d97b0728de2dc32ecab027eec747196140fdc51a 100644 (file)
@@ -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
 ;;;
   (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))))
 \f
 ;;;; Folder datatype