Index: sftp/kio_sftp.cpp =================================================================== --- sftp/kio_sftp.cpp +++ sftp/kio_sftp.cpp @@ -973,8 +973,10 @@ int rc; qCDebug(KIO_SFTP_LOG) << "special(): polling"; - if (!mSftp) + if (!mSftp) { + error(KIO::ERR_INTERNAL, i18n("Invalid sftp context")); return; + } /* * ssh_channel_poll() returns the number of bytes that may be read on the @@ -999,6 +1001,8 @@ } setTimeoutSpecialCommand(KIO_SFTP_SPECIAL_TIMEOUT); + + finished(); } void sftpProtocol::open(const QUrl &url, QIODevice::OpenMode mode) {