Mercurial > emacs
diff lisp/net/tramp.el @ 68726:74a3e3db0759
(tramp-maybe-open-connection): Do not wait for output from a dead connection.
author | Sam Steingold <sds@gnu.org> |
---|---|
date | Wed, 08 Feb 2006 15:47:31 +0000 |
parents | 067115a6e738 |
children | 3a5ea93ff8b4 4b3d39451150 |
line wrap: on
line diff
--- a/lisp/net/tramp.el Wed Feb 08 14:32:40 2006 +0000 +++ b/lisp/net/tramp.el Wed Feb 08 15:47:31 2006 +0000 @@ -6482,7 +6482,8 @@ p (processp p) (memq (process-status p) '(run open))) (tramp-send-command multi-method method user host "echo are you awake" nil t) - (unless (tramp-wait-for-output 10) + (unless (and (memq (process-status p) '(run open)) + (tramp-wait-for-output 10)) (delete-process p) (setq p nil)) (erase-buffer)))