summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorSeth ProductEngine <slitovchuk@productengine.com>2012-01-10 17:20:49 +0200
committerSeth ProductEngine <slitovchuk@productengine.com>2012-01-10 17:20:49 +0200
commit0434771b043a96b44a99db6acfdec232806f2331 (patch)
treeb1e473d40262cbfb4beba66e8de6f3dab8594214 /indra
parenta47e9bd97b9855ca8bb3309a73d33d9ae593fd7d (diff)
EXP-1766 FIXED Disabled updating agent AFK state if the viewer is disconnected. Possible crash fix.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewerwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp
index b73be4ed43..4499955dec 100644
--- a/indra/newview/llviewerwindow.cpp
+++ b/indra/newview/llviewerwindow.cpp
@@ -1206,7 +1206,8 @@ void LLViewerWindow::handleMouseMove(LLWindow *window, LLCoordGL pos, MASK mask
mWindow->showCursorFromMouseMove();
- if (gAwayTimer.getElapsedTimeF32() > LLAgent::MIN_AFK_TIME)
+ if (gAwayTimer.getElapsedTimeF32() > LLAgent::MIN_AFK_TIME
+ && !gDisconnected)
{
gAgent.clearAFK();
}