Skip to content

Commit

Permalink
Add a new method UpdateChannel and call it in the Notification
Browse files Browse the repository at this point in the history
  • Loading branch information
VeithMetro authored Oct 23, 2024
1 parent 3339d06 commit 88db241
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions MessageControl/MessageOutput.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,7 @@ namespace Publishers {
public:
void Updated() override
{
if (_parent.SubSystem()->IsActive(PluginHost::ISubSystem::NETWORK)) {
_parent.OpenUDPOutputChannel();
}
else {
_parent.CloseUDPOutputChannel();
}
_parent.UpdateChannel();
}

BEGIN_INTERFACE_MAP(Notification)
Expand All @@ -381,10 +376,7 @@ namespace Publishers {
}
}

PluginHost::ISubSystem* SubSystem() const;
void OpenUDPOutputChannel();
void CloseUDPOutputChannel();

void UpdateChannel();
void Message(const Core::Messaging::MessageInfo& metadata, const string& text);

private:
Expand Down

0 comments on commit 88db241

Please sign in to comment.