Commit 6336bd64 authored by Damiano Galassi's avatar Damiano Galassi

MacGui: disable sudden termination in the xpc service when the core is created.

parent 93bbc62c
......@@ -71,12 +71,15 @@ static void *HandBrakeXPCServiceContext = &HandBrakeXPCServiceContext;
[self.core addObserver:self forKeyPath:@"state"
options:NSKeyValueObservingOptionNew | NSKeyValueObservingOptionInitial
context:HandBrakeXPCServiceContext];
[NSProcessInfo.processInfo disableAutomaticTermination:@"Core started"];
}
- (void)tearDown
{
_core = nil;
[HBCore closeGlobal];
[NSProcessInfo.processInfo enableSuddenTermination];
}
- (void)provideResourceAccessWithBookmarks:(NSArray<NSData *> *)bookmarks
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment