Skip to content
Snippets Groups Projects
Commit 98561133 authored by Aline Gondim Santos's avatar Aline Gondim Santos Committed by Aline Gondim Santos
Browse files

plugins: fix load status after (un)install

GitLab: #490
Change-Id: Ibf7adde8afaef36c421358d13aaff2551e3ca81b
parent a4687704
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@
#include <msgpack.hpp>
#include "manager.h"
#include "preferences.h"
#include "dring/plugin_manager_interface.h"
extern "C" {
#include <archive.h>
......@@ -139,7 +140,7 @@ JamiPluginManager::installPlugin(const std::string& jplPath, bool force)
destinationDir,
PluginUtils::uncompressJplFunction);
}
loadPlugin(destinationDir);
DRing::loadPlugin(destinationDir);
} catch (const std::exception& e) {
JAMI_ERR() << e.what();
}
......@@ -156,7 +157,7 @@ JamiPluginManager::uninstallPlugin(const std::string& rootPath)
bool loaded = pm_.checkLoadedPlugin(rootPath);
if (loaded) {
JAMI_INFO() << "PLUGIN: unloading before uninstall.";
bool status = unloadPlugin(rootPath);
bool status = DRing::unloadPlugin(rootPath);
if (!status) {
JAMI_INFO() << "PLUGIN: could not unload, not performing uninstall.";
return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment