Implement immediate notify on network interfaces event.

This commit is contained in:
Peter Johnson
2016-11-18 16:27:26 -08:00
parent 65514b3028
commit 5eecbfd9bf

View File

@@ -491,6 +491,8 @@ CS_Listener AddListener(std::function<void(const RawEvent& event)> callback,
if ((eventMask & CS_NETWORK_INTERFACES_CHANGED) != 0) {
// start network interface event listener
NetworkListener::GetInstance().Start();
if (immediateNotify)
Notifier::GetInstance().NotifyNetworkInterfacesChanged();
}
if (immediateNotify) {
// TODO