Skip to content

Commit

Permalink
Always output the process data
Browse files Browse the repository at this point in the history
* indium-client.el (indium-client--process-filter-function): Always output data.
  • Loading branch information
NicolasPetton committed Aug 14, 2018
1 parent b2866e9 commit fdba281
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions indium-client.el
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,11 @@ connection established."
Evaluate CALLBACK when the server starts listening to TCP connections."
(let ((connected nil))
(lambda (process output)
(with-current-buffer (process-buffer process)
(goto-char (point-max))
(insert output))
(unless connected ;; do not try to open TCP connections multiple times
(setq connected t)
(with-current-buffer (process-buffer process)
(goto-char (point-max))
(insert output))
(if (string-match-p "server listening" output)
(indium-client--open-network-stream callback)
(progn
Expand Down

0 comments on commit fdba281

Please sign in to comment.