Function: mpc--status-timers-refresh

mpc--status-timers-refresh is a byte-compiled function defined in mpc.el.gz.

Signature

(mpc--status-timers-refresh)

Documentation

Start/stop the timers according to whether a song is playing.

Source Code

;; Defined in /usr/src/emacs/lisp/mpc.el.gz
(defun mpc--status-timers-refresh ()
  "Start/stop the timers according to whether a song is playing."
  (if (or (member (cdr (assq 'state mpc-status)) '("play"))
          (cdr (assq 'updating_db mpc-status)))
      (mpc--status-idle-timer-start)
    (mpc--status-idle-timer-stop)
    (mpc--status-timer-stop)))