From: Jay Freeman (saurik) Date: Tue, 18 Feb 2014 05:47:51 +0000 (-0800) Subject: Only do the Cydget setup once (this is important). X-Git-Tag: v0.9.4011~1 X-Git-Url: https://git.saurik.com/cydget.git/commitdiff_plain/c214006734ed349ca90ca9345a7902aea4a2305c Only do the Cydget setup once (this is important). --- diff --git a/CydgetLoader.mm b/CydgetLoader.mm index 2e70816..adf5b9d 100644 --- a/CydgetLoader.mm +++ b/CydgetLoader.mm @@ -354,8 +354,14 @@ static void CydgetSetup() { // XXX: this could happen while it is unlocked MSInstanceMessageHook1(id, SBLockScreenView, initWithFrame, CGRect, frame) { self = MSOldCall(frame); - CydgetSetup(); - Activate_(); + + static bool loaded(false); + if (!loaded) { + loaded = true; + CydgetSetup(); + Activate_(); + } + return self; }