Skip to content

Commit

Permalink
Add auto re-connect
Browse files Browse the repository at this point in the history
  • Loading branch information
mopemope committed Feb 17, 2017
1 parent c8aaece commit 32854d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meghanada.el
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,10 @@ function."
"TODO: FIX DOC PROCESS IGNORED."
(unless (process-live-p process)
(setq meghanada--client-process nil)
(message "meghanada-client process stopped")))
(message "meghanada-client process stopped")
(sleep-for 1)
(when (and meghanada--server-process (process-live-p meghanada--server-process))
(meghanada-client-direct-connect))))

(defun meghanada--task-client-process-sentinel (process ignored)
"TODO: FIX DOC PROCESS IGNORED."
Expand Down Expand Up @@ -1045,6 +1048,7 @@ function."
map)
"Keymap for Meghanada-mode.")


(easy-menu-define meghanada-mode-menu meghanada-mode-map
"Menu for Meghanada mode"
'("Meghanada"
Expand Down

0 comments on commit 32854d6

Please sign in to comment.