Skip to content

Already marked plugin as inactive in deactivated. #360

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions Monitor/Monitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -766,8 +766,15 @@ POP_WARNING()
}
}
}
void Deactivated (const string&, PluginHost::IShell*) override
void Deactivated (const string& callsign, PluginHost::IShell*) override
{
MonitorObjectContainer::iterator index(_monitor.find(callsign));

if (index != _monitor.end()) {

index->second.Set(nullptr);
index->second.Active(false);
}
}
void Unavailable(const string&, PluginHost::IShell*) override
{
Expand All @@ -782,9 +789,6 @@ POP_WARNING()

if (index != _monitor.end()) {

index->second.Set(nullptr);
index->second.Active(false);

PluginHost::IShell::reason reason = service->Reason();

if ((index->second.HasRestartAllowed() == true) && ((reason == PluginHost::IShell::MEMORY_EXCEEDED) || (reason == PluginHost::IShell::FAILURE))) {
Expand Down
Loading