summaryrefslogtreecommitdiff
path: root/indra/newview/lltwitterconnect.cpp
diff options
context:
space:
mode:
authorCho <cho@lindenlab.com>2014-02-06 22:59:58 +0000
committerCho <cho@lindenlab.com>2014-02-06 22:59:58 +0000
commit968099312a70bf3c9a68254649a40eb4ec1ae928 (patch)
treec8e7305878ad66fa3da45896beadcfb72251424a /indra/newview/lltwitterconnect.cpp
parent10bfd9eadd76d0dff13be4a5c030b9cf68d26d7d (diff)
fixed SLShare connection state issues for ACME-1298
Diffstat (limited to 'indra/newview/lltwitterconnect.cpp')
-rw-r--r--indra/newview/lltwitterconnect.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/lltwitterconnect.cpp b/indra/newview/lltwitterconnect.cpp
index 7942b21319..350da84f69 100644
--- a/indra/newview/lltwitterconnect.cpp
+++ b/indra/newview/lltwitterconnect.cpp
@@ -459,12 +459,13 @@ void LLTwitterConnect::setConnectionState(LLTwitterConnect::EConnectionState con
if (mConnectionState != connection_state)
{
+ // set the connection state before notifying watchers
+ mConnectionState = connection_state;
+
LLSD state_info;
state_info["enum"] = connection_state;
sStateWatcher->post(state_info);
}
-
- mConnectionState = connection_state;
}
void LLTwitterConnect::setConnected(bool connected)