Update
CI / GCC 16 / C++26 / default (push) Has been cancelled
CI / GCC 16 / C++26 / sanitizers (push) Has been cancelled
CI / GCC 16 / C++26 / werror (push) Has been cancelled

Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-12 03:00:38 +03:00
1 parent 4fca5523f6
commit fa30098129
5 files changed
+59

No files matched your search

+4
View File
@@ -243,9 +243,13 @@ std::expected<void, LoadError> PluginLoader::reload()
try {
next.plugin_->on_load();
} catch (...) {
std::error_code ec;
std::filesystem::remove(tmp, ec);
return std::unexpected{LoadError::ActivationFailed};
}
if (next.ready_ && next.ready_(next.plugin_) != 0) {
std::error_code ec;
std::filesystem::remove(tmp, ec);
return std::unexpected{LoadError::ActivationFailed};
}