aboutsummaryrefslogtreecommitdiff
path: root/tq.el
diff options
context:
space:
mode:
Diffstat (limited to 'tq.el')
-rw-r--r--tq.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/tq.el b/tq.el
index 6219e43..1b04939 100644
--- a/tq.el
+++ b/tq.el
@@ -100,8 +100,9 @@ to a tcp server on another machine."
(defun tq-queue-pop (tq)
(setcar tq (cdr (car tq)))
(let ((question (tq-queue-head-question tq)))
- (when question
- (process-send-string (tq-process tq) question)))
+ (condition-case nil
+ (process-send-string (tq-process tq) question)
+ (error nil)))
(null (car tq)))
(defun tq-enqueue (tq question regexp closure fn &optional delay-question)