aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-02-18 01:18:14 -0700
committerMcCabe Maxsted2009-02-18 01:18:14 -0700
commitdedd02010126a481ea1edad6ed618e10023c7f53 (patch)
treeaea68e61fd1b3adfd662ef981167d08593f3b764 /linden/indra
parentBackported LLSD changes from 1.22 (diff)
downloadmeta-impy-dedd02010126a481ea1edad6ed618e10023c7f53.zip
meta-impy-dedd02010126a481ea1edad6ed618e10023c7f53.tar.gz
meta-impy-dedd02010126a481ea1edad6ed618e10023c7f53.tar.bz2
meta-impy-dedd02010126a481ea1edad6ed618e10023c7f53.tar.xz
Fixed crash in Top Scripts
Diffstat (limited to '')
-rw-r--r--linden/indra/llmessage/llpumpio.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/linden/indra/llmessage/llpumpio.cpp b/linden/indra/llmessage/llpumpio.cpp
index 9ce0bab..467502b 100644
--- a/linden/indra/llmessage/llpumpio.cpp
+++ b/linden/indra/llmessage/llpumpio.cpp
@@ -177,7 +177,8 @@ LLPumpIO::LLPumpIO(apr_pool_t* pool) :
177 mCurrentPool(NULL), 177 mCurrentPool(NULL),
178 mCurrentPoolReallocCount(0), 178 mCurrentPoolReallocCount(0),
179 mChainsMutex(NULL), 179 mChainsMutex(NULL),
180 mCallbackMutex(NULL) 180 mCallbackMutex(NULL),
181 mCurrentChain(mRunningChains.end())
181{ 182{
182 LLMemType m1(LLMemType::MTYPE_IO_PUMP); 183 LLMemType m1(LLMemType::MTYPE_IO_PUMP);
183 initialize(pool); 184 initialize(pool);
@@ -273,7 +274,10 @@ bool LLPumpIO::setTimeoutSeconds(F32 timeout)
273void LLPumpIO::adjustTimeoutSeconds(F32 delta) 274void LLPumpIO::adjustTimeoutSeconds(F32 delta)
274{ 275{
275 // If no chain is running, bail 276 // If no chain is running, bail
276 if(current_chain_t() == mCurrentChain) return; 277 if(mRunningChains.end() == mCurrentChain)
278 {
279 return;
280 }
277 (*mCurrentChain).adjustTimeoutSeconds(delta); 281 (*mCurrentChain).adjustTimeoutSeconds(delta);
278} 282}
279 283