Skip to content

Commit

Permalink
Guard evaluation of server-use-tcp because it might not be defined
Browse files Browse the repository at this point in the history
Thanks to Nicolas Dudebout for the suggestion.
Closes magitGH-283
  • Loading branch information
vanicat committed Nov 29, 2011
1 parent a1bdd47 commit b57ac59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion magit.el
Expand Up @@ -4997,7 +4997,8 @@ Return values:
(if (functionp 'server-running-p)
(server-running-p)
(condition-case nil
(if server-use-tcp
(if (and (boundp 'server-use-tcp)
server-use-tcp)
(with-temp-buffer
(insert-file-contents-literally (expand-file-name server-name server-auth-dir))
(or (and (looking-at "127\\.0\\.0\\.1:[0-9]+ \\([0-9]+\\)")
Expand Down

0 comments on commit b57ac59

Please sign in to comment.