diff options
Diffstat (limited to 'src/modules/plugins/newplugins.cpp')
-rw-r--r-- | src/modules/plugins/newplugins.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp index 359b2705e3..93a7673895 100644 --- a/src/modules/plugins/newplugins.cpp +++ b/src/modules/plugins/newplugins.cpp @@ -643,16 +643,13 @@ void EnsureCheckerLoaded(bool bEnable) if ( !(p->pclass & PCLASS_LOADED)) {
if (p->bpi.Load() != ERROR_SUCCESS)
Plugin_Uninit(p);
- else
+ else {
p->pclass |= PCLASS_LOADED;
+ servicePlugins.remove(i);
+ }
}
}
- else {
- if (p->pclass & PCLASS_LOADED) {
- p->bpi.Unload();
- p->pclass &= ~PCLASS_LOADED;
- }
- }
+ else Plugin_Uninit(p);
break;
}
}
|