When disposing a client, (re)use Disconnect() to signal that we're disconnecting - hereby avoiding exceptions getting thrown for a waithandle timeout (waiting for a SSH response message). Note: may need to revisit this again to only avoid throwing exception waiting for a response on a disconnect or channel close/eof message.
↧