From 3fd4e8f33f4c3f1448988f065be71edd03c3494b Mon Sep 17 00:00:00 2001 From: Andreas Politz Date: Tue, 25 Sep 2018 08:29:02 +0200 Subject: Avoid race-condition when quitting the server --- lisp/pdf-info.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/pdf-info.el b/lisp/pdf-info.el index 33943de..3eeacf8 100644 --- a/lisp/pdf-info.el +++ b/lisp/pdf-info.el @@ -382,7 +382,8 @@ error." (accept-process-output (pdf-info-process) 0.01)) (when (and (not done) (not (eq (process-status (pdf-info-process)) - 'run))) + 'run)) + (not (eq cmd 'quit))) (error "The epdfinfo server quit unexpectedly.")) (cond ((null status) response) -- cgit v1.0