close method

void close()

Close the sftp session.

Implementation

void close() {
  for (var waiter in _replyWaiters.values) {
    waiter.completeError(SftpAbortError("Connection closed"));
  }
  _replyWaiters.clear();
  _done.complete();
}