Skip to content

Commit

Permalink
Only reconnect when the mode is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Mstrodl committed Apr 11, 2018
1 parent 3071250 commit 0cef4ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elcord.el
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ Argument EVNT The available output from the process."
;;Stop updating presence for now
(elcord--cancel-updates)
;;Start trying to reconnect
(elcord--start-reconnect))
(when
(bound-and-true-p elcord-mode)
(elcord--start-reconnect)))

(defun elcord--send-packet (opcode obj)
"Packs and sends a packet to the IPC server.
Expand Down

0 comments on commit 0cef4ca

Please sign in to comment.