branch: externals/dtache
commit b2b2b6ecd1514b851797dc298dc6e71d62a6a835
Author: Niklas Eklund <[email protected]>
Commit: Niklas Eklund <[email protected]>
Fix error in dtache-attach
---
dtache.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dtache.el b/dtache.el
index b00a356f70..220201cede 100644
--- a/dtache.el
+++ b/dtache.el
@@ -632,8 +632,8 @@ If session is not valid trigger an automatic cleanup on
SESSION's host."
(let* ((dtache--current-session session)
(dtache-session-mode 'attach)
(inhibit-message t))
- (if (dtache--session-attachable session)
- (dtache--attach-session session)
+ (if (not (dtache--session-attachable session))
+ (dtache-tail-output session)
(cl-letf* (((symbol-function #'set-process-sentinel) #'ignore)
(buffer dtache--shell-command-buffer)
(dtach-command (dtache-dtach-command session t)))