summaryrefslogtreecommitdiff
path: root/indra/llcommon/llthread.h
diff options
context:
space:
mode:
authorGraham Madarasz (Graham) <graham@lindenlab.com>2013-03-01 11:21:35 -0800
committerGraham Madarasz (Graham) <graham@lindenlab.com>2013-03-01 11:21:35 -0800
commitdfda8826eb4654845430520dac48c011e058e1c0 (patch)
tree7ace15924b286393cc312f312bb632bc0d6eef86 /indra/llcommon/llthread.h
parentae1aa461ea3f96c092e2a50ae40f290b03b25356 (diff)
Make WL updates use pre-hashed strings for uniform sets
Diffstat (limited to 'indra/llcommon/llthread.h')
-rw-r--r--indra/llcommon/llthread.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llcommon/llthread.h b/indra/llcommon/llthread.h
index c2f4184a8a..0d22bc863d 100644
--- a/indra/llcommon/llthread.h
+++ b/indra/llcommon/llthread.h
@@ -262,9 +262,9 @@ public:
// so that two threads who get into the if in parallel
// don't both attempt to the delete.
//
- if (mRef == 1)
- delete this;
mRef--;
+ if (mRef == 0)
+ delete this;
if (sMutex) sMutex->unlock();
return 0;
}