File tree 1 file changed +8
-5
lines changed
src/darwin/Framework/CHIP
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 17
17
#import < Foundation/Foundation.h>
18
18
19
19
#import " MTRDeviceControllerFactory_Internal.h"
20
+ #import " MTRLogging_Internal.h"
20
21
#import " MTROperationalBrowser.h"
21
22
22
23
#include < cinttypes>
125
126
return ;
126
127
}
127
128
128
- if (!(aFlags & kDNSServiceFlagsAdd )) {
129
- // We only care about new things appearing.
130
- return ;
131
- }
132
-
133
129
chip::PeerId peerId;
134
130
CHIP_ERROR err = chip::Dnssd::ExtractIdFromInstanceName (aName, &peerId);
135
131
if (err != CHIP_NO_ERROR) {
136
132
ChipLogError (Controller, " Invalid instance name: '%s'\n " , aName);
137
133
return ;
138
134
}
139
135
136
+ if (!(aFlags & kDNSServiceFlagsAdd )) {
137
+ // We mostly only care about new things appearing, but log it when things
138
+ // disappear.
139
+ MTR_LOG (" Matter operational instance advertisement removed: '%s'\n " , aName);
140
+ return ;
141
+ }
142
+
140
143
ChipLogProgress (Controller, " Notifying controller factory about new operational instance: '%s'" , aName);
141
144
[self ->mDeviceControllerFactory operationalInstanceAdded: peerId];
142
145
}
You can’t perform that action at this time.
0 commit comments