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