From f52c796246f41f120bc82671fe3fb8e8f9cca5af Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sun, 6 Dec 2020 11:42:06 +0100 Subject: MacGui: do not disable xpc services suddent termination. Sudden termination is automatically disabled when an encode is running. --- macosx/HandBrakeXPCService/HandBrakeXPCService.m | 3 --- 1 file changed, 3 deletions(-) diff --git a/macosx/HandBrakeXPCService/HandBrakeXPCService.m b/macosx/HandBrakeXPCService/HandBrakeXPCService.m index facf01268..552d4f92c 100644 --- a/macosx/HandBrakeXPCService/HandBrakeXPCService.m +++ b/macosx/HandBrakeXPCService/HandBrakeXPCService.m @@ -71,15 +71,12 @@ 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)setLogLevel:(NSInteger)logLevel -- cgit v1.2.3