* mu4e/mu4e-utils.el (mu4e-update-mail-and-index): Don't run a new process if one is already running.

This commit is contained in:
Thierry Volpiatto 2013-10-16 15:08:12 +02:00
parent 0e1efc8f5d
commit 78ffccfb2d
1 changed files with 4 additions and 0 deletions

View File

@ -805,6 +805,10 @@ The messages are inserted into the process buffer."
run-in-background is non-nil (or called with prefix-argument), run
in the background; otherwise, pop up a window."
(interactive "P")
(when (and mu4e~update-buffer-name
(get-buffer-process
(get-buffer mu4e~update-buffer-name)))
(mu4e-error "Update process is already running"))
(run-hooks 'mu4e-update-pre-hook)
(unless mu4e-get-mail-command
(mu4e-error "`mu4e-get-mail-command' is not defined"))