* riece-filter.el (riece-sentinel): Don't call riece-exit here.
authorDaiki Ueno <ueno@unixuser.org>
Wed, 8 Oct 2003 19:42:55 +0000 (19:42 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Wed, 8 Oct 2003 19:42:55 +0000 (19:42 +0000)
* riece-server.el (riece-close-server-process): Call riece-exit.

lisp/ChangeLog
lisp/riece-filter.el
lisp/riece-server.el

index 43daee8..e402723 100644 (file)
@@ -1,7 +1,9 @@
 2003-10-08  Daiki Ueno  <ueno@unixuser.org>
 
-       * riece-server.el (riece-quit-server-process): Call
-       riece-close-server-process instead of kill-process.
+       * riece-filter.el (riece-sentinel): Don't call riece-exit here.
+       * riece-server.el (riece-close-server-process): Call riece-exit.
+       (riece-quit-server-process): Call riece-close-server-process
+       instead of kill-process.
 
 2003-10-07  Daiki Ueno  <ueno@unixuser.org>
 
index 89abe6f..64e917d 100644 (file)
              (riece-part-channel (car channels)))
          (setq channels (cdr channels))))
       (riece-redisplay-buffers)
-      (riece-close-server-process process)
-      ;; If no server process is available, exit.
-      (unless riece-process-list
-       (riece-exit)))))
+      (riece-close-server-process process))))
 
 (provide 'riece-filter)
 
index 89e9237..68f8c9b 100644 (file)
@@ -197,7 +197,10 @@ the `riece-server-keyword-map' variable."
   (if riece-debug
       (delete-process process)
     (kill-buffer (process-buffer process)))
-  (setq riece-process-list (delq process riece-process-list)))
+  (setq riece-process-list (delq process riece-process-list))
+  ;; If no server process is available, exit.
+  (unless riece-process-list
+    (riece-exit)))
 
 (defun riece-server-opened (&optional server-name)
   (let ((process-list riece-process-list))