* riece-server.el (riece-make-queue): New function.
authorueno <ueno>
Mon, 27 Sep 2004 02:16:56 +0000 (02:16 +0000)
committerueno <ueno>
Mon, 27 Sep 2004 02:16:56 +0000 (02:16 +0000)
(riece-queue-enqueue): New function.
(riece-queue-dequeue): New function.
(riece-queue-empty): New function.
(riece-flush-send-queue): Use a queue object; check the process
is active.

lisp/ChangeLog
lisp/riece-server.el

index 9c298b6..fecf400 100644 (file)
@@ -6,7 +6,8 @@
        (riece-queue-enqueue): New function.
        (riece-queue-dequeue): New function.
        (riece-queue-empty): New function.
-       (riece-flush-send-queue): Use a queue object.
+       (riece-flush-send-queue): Use a queue object; check the process
+       is active.
 
 2004-09-25  Daiki Ueno  <ueno@unixuser.org>
 
index 1cf13b8..ff6ca63 100644 (file)
@@ -173,7 +173,10 @@ the `riece-server-keyword-map' variable."
            (setq riece-last-send-time (current-time)))))
       (if riece-send-queue
          (riece-run-at-time riece-send-delay nil
-                            #'riece-flush-send-queue process)))))
+                            (lambda (process)
+                              (if (process-buffer process)
+                                  (riece-flush-send-queue process)))
+                            process)))))
 
 (defun riece-process-send-string (process string)
   (with-current-buffer (process-buffer process)