Advertisement
Guest User

proxmark3-appnap.patch

a guest
Sep 24th, 2019
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.13 KB | None | 0 0
  1. From cc9a12bfc0561ea8a101575c0644087386233f53 Mon Sep 17 00:00:00 2001
  2. From: AntiCat <github@anticat.ch>
  3. Date: Tue, 24 Sep 2019 21:29:56 +0000
  4. Subject: [PATCH] AppNap: Debug state transistions
  5.  
  6. ---
  7. client/util_darwin.m | 4 ++--
  8.  1 file changed, 2 insertions(+), 2 deletions(-)
  9.  
  10. diff --git a/client/util_darwin.m b/client/util_darwin.m
  11. index a22ac54f..adc6d5a0 100644
  12. --- a/client/util_darwin.m
  13. +++ b/client/util_darwin.m
  14. @@ -20,7 +20,7 @@ static id activity = nil;
  15.  #if defined(MAC_OS_X_VERSION_10_10)
  16.  void disableAppNap(const char* reason) {
  17.      if(activity == nil) {
  18. -        //NSLog(@"disableAppNap: %@", @(reason));
  19. +        NSLog(@"disableAppNap: %@", @(reason));
  20.          activity = [[NSProcessInfo processInfo] beginActivityWithOptions:NSActivityBackground reason:@(reason)];
  21.          [activity retain];
  22.      }
  23. @@ -28,7 +28,7 @@ void disableAppNap(const char* reason) {
  24.  
  25.  void enableAppNap() {
  26.      if(activity != nil) {
  27. -        //NSLog(@"enableAppNap");
  28. +        NSLog(@"enableAppNap");
  29.          [[NSProcessInfo processInfo] endActivity:activity];
  30.          [activity release];
  31.          activity = nil;
  32. --
  33. 2.23.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement