Skip to content

Commit

Permalink
Do use eglot-connect-timeout if eglot-sync-connect is t
Browse files Browse the repository at this point in the history
Reported by Eli Zaretskii <[email protected]>

* eglot.el (eglot--connect): Use eglot-connect-timeout in the case
eglot-sync-connect is t.
joaotavora committed Oct 20, 2022
1 parent d115917 commit 8315db4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eglot.el
Original file line number Diff line number Diff line change
@@ -1282,7 +1282,8 @@ in project `%s'."
(cond ((numberp eglot-sync-connect)
(accept-process-output nil eglot-sync-connect))
(eglot-sync-connect
(while t (accept-process-output nil 30)))))))
(while t (accept-process-output
nil eglot-connect-timeout)))))))
(pcase retval
(`(error . ,msg) (eglot--error msg))
(`nil (eglot--message "Waiting in background for server `%s'"

0 comments on commit 8315db4

Please sign in to comment.