From 15ed748a6f3584139264e93a02712dfd474640e6 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 13 Mar 2016 19:14:41 -0400 Subject: [PATCH] Do not require a SynchronizePrefs before reading. --- apple-ir-control.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/apple-ir-control.cc b/apple-ir-control.cc index d159004..337a457 100644 --- a/apple-ir-control.cc +++ b/apple-ir-control.cc @@ -124,9 +124,6 @@ io_iterator_t CreateIOServiceIterator() { } int HandleRead() { - if (!SynchronizePrefs()) - return EXIT_FAILURE; - CFTypeRef user_prop = CFPreferencesCopyValue(kPrefEnabled, kPrefDomain, kCFPreferencesAnyUser, kCFPreferencesCurrentHost); printf("Userspace property value: %s\n", GetBooleanDescription(user_prop)); -- 2.43.5