+2004-06-03 Daiki Ueno <ueno@unixuser.org>
+
+ * riece-server.el (riece-open-server): When password input is
+ quitted, delete the current server process manually.
+ (riece-close-server-process): Always kill process buffer.
+ (riece-quit-server-process): If the connection is timed out,
+ delete the current server process manually.
+
2004-06-02 Daiki Ueno <ueno@unixuser.org>
* riece-unread.el: Use riece-facep to check existence of
'quit)))
(setq riece-reconnect-with-password nil)))
(if (eq password 'quit)
- (progn
- (riece-close-server-process process)
- ;; If no server process is available, exit.
- (unless riece-server-process-alist
- (riece-exit)))
+ (delete-process process)
(if password
(riece-process-send-string process
(format "PASS %s\r\n" password)))
(erase-buffer)))
(defun riece-close-server-process (process)
- (if riece-debug
- (delete-process process)
- (set-process-filter process nil)
- (set-process-sentinel process nil)
- (kill-buffer (process-buffer process)))
+ (kill-buffer (process-buffer process))
(setq riece-server-process-alist
(delq (rassq process riece-server-process-alist)
riece-server-process-alist)))
(if riece-quit-timeout
(riece-run-at-time riece-quit-timeout nil
(lambda (process)
- (when (rassq process riece-server-process-alist)
- (riece-close-server-process process)
- ;; If no server process is available, exit.
- (unless riece-server-process-alist
- (riece-exit))))
+ (if (rassq process riece-server-process-alist)
+ (delete-process process)))
process))
(riece-process-send-string process
(if message