summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HandBrakeXPCService/HandBrakeXPCService.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/macosx/HandBrakeXPCService/HandBrakeXPCService.m b/macosx/HandBrakeXPCService/HandBrakeXPCService.m
index 7570f5fce..366326b69 100644
--- a/macosx/HandBrakeXPCService/HandBrakeXPCService.m
+++ b/macosx/HandBrakeXPCService/HandBrakeXPCService.m
@@ -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