Method: Net::SSH::Connection::Channel#do_failure
- Defined in:
- lib/net/ssh/connection/channel.rb
#do_failure ⇒ Object
Invokes the next pending request callback with false
as the second argument.
595 596 597 598 599 600 601 |
# File 'lib/net/ssh/connection/channel.rb', line 595 def do_failure if callback = pending_requests.shift callback.call(self, false) else error { "channel failure recieved with no pending request to handle it (bug?)" } end end |