diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 2488f51bee..f17211fe58 100755 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -531,13 +531,12 @@ void idle_afk_check() F32 current_idle = gAwayTriggerTimer.getElapsedTimeF32(); // F32 afk_timeout = gSavedSettings.getS32("AFKTimeout"); // [RLVa:KB] - Checked: 2010-05-03 (RLVa-1.2.0g) | Modified: RLVa-1.2.0g -#ifdef RLV_EXTENSION_CMD_ALLOWIDLE - // Enforce an idle time of 30 minutes if @allowidle=n restricted // Cache frequently hit location static LLCachedControl sAFKTimeout(gSavedSettings, "AFKTimeout"); - S32 afk_timeout = (!gRlvHandler.hasBehaviour(RLV_BHVR_ALLOWIDLE)) ? sAFKTimeout : 60 * 30; -#else - static LLCachedControl afk_timeout(gSavedSettings, "AFKTimeout"); // + S32 afk_timeout = sAFKTimeout; +#ifdef RLV_EXTENSION_CMD_ALLOWIDLE + // Enforce an idle time of 30 minutes if @allowidle=n restricted + afk_timeout = (!gRlvHandler.hasBehaviour(RLV_BHVR_ALLOWIDLE)) ? afk_timeout : 60 * 30; #endif // RLV_EXTENSION_CMD_ALLOWIDLE // [/RLVa:KB] // Explicit conversions just cos.