File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,16 @@ - (id)initWithUniqueIdentifier:(NSUUID *)UUID xpConnectionBlock:(NSXPCConnection
67
67
self.xpcConnection .exportedInterface = [NSXPCInterface interfaceWithProtocol: @protocol (MTRXPCClientProtocol)];
68
68
self.xpcConnection .exportedObject = self;
69
69
70
- MTR_LOG (" Resuming new XPC connection" );
71
- [self .xpcConnection resume ];
70
+ self.xpcConnection .interruptionHandler = ^{
71
+ MTR_LOG_ERROR (" XPC Connection for device controller interrupted: %@" , UUID);
72
+ };
73
+
74
+ self.xpcConnection .invalidationHandler = ^{
75
+ MTR_LOG_ERROR (" XPC Connection for device controller invalidated: %@" , UUID);
76
+ };
77
+
78
+ MTR_LOG (" Activating new XPC connection" );
79
+ [self .xpcConnection activate ];
72
80
} else {
73
81
MTR_LOG_ERROR (" Failed to set up XPC Connection" );
74
82
return nil ;
Original file line number Diff line number Diff line change @@ -247,6 +247,7 @@ void MdnsContexts::Delete(GenericContext * context)
247
247
if (context->serviceRef != nullptr )
248
248
{
249
249
DNSServiceRefDeallocate (context->serviceRef );
250
+ context->serviceRef = nullptr ;
250
251
}
251
252
chip::Platform::Delete (context);
252
253
}
You can’t perform that action at this time.
0 commit comments