Start the folder-probe thread only when the folder is ONLINE, and stop
authorChris Hanson <org/chris-hanson/cph>
Tue, 12 Jun 2001 01:05:44 +0000 (01:05 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 12 Jun 2001 01:05:44 +0000 (01:05 +0000)
the thread when the folder is OFFLINE.  Make sure that the buffer is
disassociated from it's folder when the buffer is killed.

v7/src/imail/imail-top.scm

index 992240bcd8390c6d3d8297830f8efc4ffb4f94d3..631789f2f3797b2f7de09a5153211c9d347aae5f 100644 (file)
@@ -1,6 +1,6 @@
 ;;; -*-Scheme-*-
 ;;;
-;;; $Id: imail-top.scm,v 1.267 2001/06/12 00:58:03 cph Exp $
+;;; $Id: imail-top.scm,v 1.268 2001/06/12 01:05:44 cph Exp $
 ;;;
 ;;; Copyright (c) 1999-2001 Massachusetts Institute of Technology
 ;;;
@@ -1966,6 +1966,7 @@ Negative argument means search in reverse."
        (if folder
           (begin
             (ignore-modification-events folder notice-folder-event)
+            (stop-probe-folder-thread folder)
             (remove-property! folder 'BUFFER)))))))
 
 (define (delete-associated-buffers folder-buffer)