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 | |
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
-rw-r--r-- | ChangeLog.txt | 6 | ||||
-rw-r--r-- | linden/indra/llmessage/llpumpio.cpp | 8 |
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 3d8166f..c2c4669 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,3 +1,9 @@ | |||
1 | 2009-02-17 McCabe Maxsted <hakushakukun@gmail.com> | ||
2 | |||
3 | * linden/indra/llmessage/llpumpio.cpp: | ||
4 | Fixed crash in Top Scripts. | ||
5 | |||
6 | |||
1 | 2009-02-15 McCabe Maxsted <hakushakukun@gmail.com> | 7 | 2009-02-15 McCabe Maxsted <hakushakukun@gmail.com> |
2 | 8 | ||
3 | * linden/indra/llcommon/llsdserialize.cpp: | 9 | * linden/indra/llcommon/llsdserialize.cpp: |
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 | ||