# File lib/net/ssh/connection/channel.rb, line 590
590:       def do_failure
591:         if callback = pending_requests.shift
592:           callback.call(self, false)
593:         else
594:           error { "channel failure recieved with no pending request to handle it (bug?)" }
595:         end
596:       end