We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed24d84 commit 2387782Copy full SHA for 2387782
lib/net/ssh/multi/server.rb
@@ -140,8 +140,9 @@ def session(require_session=false)
140
141
# Returns +true+ if the session has been opened, and the session is currently
142
# busy (as defined by Net::SSH::Connection::Session#busy?).
143
+ # Also returns false if the server has failed to connect.
144
def busy?(include_invisible=false)
- session && session.busy?(include_invisible)
145
+ !failed? && session && session.busy?(include_invisible)
146
end
147
148
# Closes this server's session. If the session has not yet been opened,
@@ -228,4 +229,4 @@ def postprocess(readers, writers) #:nodoc:
228
229
session.postprocess(listeners & readers, listeners & writers)
230
231
-end; end; end
232
+end; end; end
0 commit comments