diff options
author | McCabe Maxsted | 2009-02-18 01:18:14 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-02-18 01:18:14 -0700 |
commit | dedd02010126a481ea1edad6ed618e10023c7f53 (patch) | |
tree | aea68e61fd1b3adfd662ef981167d08593f3b764 /linden/indra/llmessage/llpumpio.cpp | |
parent | Backported LLSD changes from 1.22 (diff) | |
download | meta-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.cpp | 8 |
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) | |||
273 | void LLPumpIO::adjustTimeoutSeconds(F32 delta) | 274 | void 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 | ||