summaryrefslogtreecommitdiff
path: root/indra/llxml/llcontrol.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llxml/llcontrol.h')
-rw-r--r--indra/llxml/llcontrol.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/indra/llxml/llcontrol.h b/indra/llxml/llcontrol.h
index 0a8e665c55..37939a0908 100644
--- a/indra/llxml/llcontrol.h
+++ b/indra/llxml/llcontrol.h
@@ -332,10 +332,6 @@ public:
~LLControlCache()
{
- if(mConnection.connected())
- {
- mConnection.disconnect();
- }
}
const T& getValue() const { return mCachedValue; }
@@ -378,7 +374,7 @@ private:
private:
T mCachedValue;
eControlType mType;
- boost::signals2::connection mConnection;
+ boost::signals2::scoped_connection mConnection;
};
template <typename T>