aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-02-18 01:18:14 -0700
committerMcCabe Maxsted2009-02-18 01:18:14 -0700
commitdedd02010126a481ea1edad6ed618e10023c7f53 (patch)
treeaea68e61fd1b3adfd662ef981167d08593f3b764
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
-rw-r--r--ChangeLog.txt6
-rw-r--r--linden/indra/llmessage/llpumpio.cpp8
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 @@
12009-02-17 McCabe Maxsted <hakushakukun@gmail.com>
2
3 * linden/indra/llmessage/llpumpio.cpp:
4 Fixed crash in Top Scripts.
5
6
12009-02-15 McCabe Maxsted <hakushakukun@gmail.com> 72009-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)
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