From c432528ed0975a95fd219e77533cd0a5074e8f48 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 9 Nov 2014 19:46:05 -0800 Subject: [PATCH] Use @synchronized instead of manual [lock/unlock]. --- Tweak.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tweak.mm b/Tweak.mm index db1f623..9f45f29 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -945,7 +945,7 @@ static void VNCEnabled() { if (screen_ == NULL) return; - [lock_ lock]; + @synchronized (lock_) { Boolean valid; bool enabled(CFPreferencesGetAppBooleanValue(CFSTR("Enabled"), CFSTR("com.saurik.Veency"), &valid)); @@ -963,7 +963,7 @@ static void VNCEnabled() { running_ = false; } - [lock_ unlock]; + } } static void VNCNotifyEnabled( -- 2.45.2