diff options
author | Damiano Galassi <[email protected]> | 2020-12-06 11:42:06 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2020-12-06 11:42:06 +0100 |
commit | f52c796246f41f120bc82671fe3fb8e8f9cca5af (patch) | |
tree | 60a425fb28cd52b8d098477974df1ce0f359e93a | |
parent | d4bd058e4d270ff1d6cec5143af2b3ac3d82ed7b (diff) |
MacGui: do not disable xpc services suddent termination. Sudden termination is automatically disabled when an encode is running.
-rw-r--r-- | macosx/HandBrakeXPCService/HandBrakeXPCService.m | 3 |
1 files changed, 0 insertions, 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 |