2003-10-08 Daiki Ueno <ueno@unixuser.org>
- * riece-filter.el (riece-sentinel): Don't call riece-exit here.
- * riece-server.el (riece-close-server-process): Call riece-exit.
+ * riece-server.el (riece-close-server-process):
(riece-quit-server-process): Call riece-close-server-process
- instead of kill-process.
+ instead of kill-process; call riece-exit if no process is available.
2003-10-07 Daiki Ueno <ueno@unixuser.org>
(throw 'contiguous nil)))))
(forward-line)))))
+(eval-when-compile
+ (autoload 'riece-exit "riece"))
(defun riece-sentinel (process status)
(if riece-reconnect-with-password
(let ((server-name
(riece-part-channel (car channels)))
(setq channels (cdr channels))))
(riece-redisplay-buffers)
- (riece-close-server-process process))))
+ (riece-close-server-process process)
+ ;; If no server process is available, exit.
+ (unless riece-process-list
+ (riece-exit)))))
(provide 'riece-filter)
(buffer-disable-undo)
(erase-buffer)))
-(eval-when-compile
- (autoload 'riece-exit "riece"))
(defun riece-close-server-process (process)
(if riece-debug
(delete-process process)
(kill-buffer (process-buffer process)))
- (setq riece-process-list (delq process riece-process-list))
- ;; If no server process is available, exit.
- (unless riece-process-list
- (riece-exit)))
+ (setq riece-process-list (delq process riece-process-list)))
(defun riece-server-opened (&optional server-name)
(let ((process-list riece-process-list))
(throw 'found t))
(setq process-list (cdr process-list))))))
+(eval-when-compile
+ (autoload 'riece-exit "riece"))
(defun riece-quit-server-process (process &optional message)
(run-at-time riece-quit-timeout nil
(lambda (process)
- (if (memq process riece-process-list)
- (riece-close-server-process process)))
+ (when (memq process riece-process-list)
+ (riece-close-server-process process)
+ ;; If no server process is available, exit.
+ (unless riece-process-list
+ (riece-exit))))
process)
(riece-process-send-string process
(if message