mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Implement immediate notify on network interfaces event.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user