fix: Crash when canceling creation of SSH provider

Fixes #2557
This commit is contained in:
WerWolv 2025-12-11 16:24:43 +01:00
parent 2586645d02
commit fb7ef61d06
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,9 @@ namespace hex::plugin::remote {
} }
void SSHProvider::close() { void SSHProvider::close() {
m_remoteFile->close(); if (m_remoteFile != nullptr)
m_remoteFile->close();
m_sftpClient.disconnect(); m_sftpClient.disconnect();
m_remoteFilePath.clear(); m_remoteFilePath.clear();
} }