summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Politz <politza@hochschule-trier.de>2018-09-25 08:29:02 +0200
committerAndreas Politz <politza@hochschule-trier.de>2018-09-25 08:29:02 +0200
commit3fd4e8f33f4c3f1448988f065be71edd03c3494b (patch)
tree0b400c8dc12c5af9623da7f46e30e890867e566c
parent6ff2ae1b2e0edab15bef2411107abb94dd54364a (diff)
Avoid race-condition when quitting the server
-rw-r--r--lisp/pdf-info.el3
1 files changed, 2 insertions, 1 deletions
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)