aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2020-12-15 12:50:50 +0100
committerMichael Albinus2020-12-15 12:50:50 +0100
commitc8aad8cc11ccfda64a07cfc9675c6e6b07d552fa (patch)
tree797123deb58753e6fa4d05b7e8bf749a2e56987a
parent8bc5bd5b03cfc1994734b5903f98dccc0cdf004f (diff)
downloademacs-c8aad8cc11ccfda64a07cfc9675c6e6b07d552fa.tar.gz
emacs-c8aad8cc11ccfda64a07cfc9675c6e6b07d552fa.zip
Revert last change in tramp-maybe-open-connection)
* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Revert last change, it causes trouble.
-rw-r--r--lisp/net/tramp-sh.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index e9814cdadb9..f4a93c840cf 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -4960,9 +4960,10 @@ connection if a previous connection has died for some reason."
4960 (when (and (time-less-p 4960 (when (and (time-less-p
4961 60 (time-since 4961 60 (time-since
4962 (tramp-get-connection-property p "last-cmd-time" 0))) 4962 (tramp-get-connection-property p "last-cmd-time" 0)))
4963 (process-live-p p) 4963 (process-live-p p))
4964 (tramp-get-connection-property p "connected" nil)) 4964 (tramp-send-command vec "echo are you awake" t t)
4965 (unless (tramp-send-command-and-check vec "echo are you awake") 4965 (unless (and (process-live-p p)
4966 (tramp-wait-for-output p 10))
4966 ;; The error will be caught locally. 4967 ;; The error will be caught locally.
4967 (tramp-error vec 'file-error "Awake did fail"))) 4968 (tramp-error vec 'file-error "Awake did fail")))
4968 (file-error 4969 (file-error