fix: Cached provider invalidation on reload not being done correctly

This commit is contained in:
WerWolv
2026-03-02 10:07:57 +01:00
parent 0cf27b9e9e
commit 04a8bd6798
3 changed files with 9 additions and 2 deletions

View File

@@ -243,12 +243,13 @@ namespace hex::plugin::builtin {
}
prv::Provider::OpenResult CommandProvider::open() {
CachedProvider::open();
m_open = true;
return {};
}
void CommandProvider::close() {
CachedProvider::close();
}
bool CommandProvider::drawLoadInterface() {

View File

@@ -255,6 +255,7 @@ namespace hex::plugin::builtin {
}
prv::Provider::OpenResult GDBProvider::open() {
CachedProvider::open();
std::scoped_lock lock(m_mutex);
CachedProvider::open();
@@ -276,6 +277,8 @@ namespace hex::plugin::builtin {
CachedProvider::close();
m_socket.disconnect();
CachedProvider::close();
}
bool GDBProvider::isConnected() const {

View File

@@ -12,6 +12,8 @@
namespace hex::plugin::remote {
prv::Provider::OpenResult SSHProvider::open() {
CachedProvider::open();
if (!m_sftpClient.isConnected()) {
try {
if (m_authMethod == AuthMethod::Password) {
@@ -47,7 +49,8 @@ namespace hex::plugin::remote {
m_remoteFile->close();
m_sftpClient.disconnect();
m_remoteFilePath.clear();
CachedProvider::close();
}
void SSHProvider::save() {