diff options
Diffstat (limited to 'src/libs/ssh/sftpchannel.cpp')
-rw-r--r-- | src/libs/ssh/sftpchannel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/ssh/sftpchannel.cpp b/src/libs/ssh/sftpchannel.cpp index a1c88bb650..c69ca173f2 100644 --- a/src/libs/ssh/sftpchannel.cpp +++ b/src/libs/ssh/sftpchannel.cpp @@ -302,6 +302,9 @@ void SftpChannelPrivate::handleExitStatus(const SshChannelExitStatus &exitStatus qDebug("Remote SFTP service exited with exit code %d", exitStatus.exitStatus); #endif + if (channelState() == CloseRequested || channelState() == Closed) + return; + emit channelError(tr("The SFTP server finished unexpectedly with exit code %1.") .arg(exitStatus.exitStatus)); |