[sldev] LLEventTimer does not stop()

Jason Giglio gigstaggart at gmail.com
Fri Mar 14 06:39:11 PDT 2008


I am puzzled by this behavior of LLTimer and LLEventTimer.  There is a 
method to stop() the timer, but it does not actually do anything.  It 
sets the mStarted flag to false when it's called, but none of the other 
methods actually check this flag before doing anything.

This means that LLEventTimer will continue to run the callbacks even 
after you call stop() to pause the timer.

Attached is a small proposed patch that will fix the LLEventTimer. 
LLTimer itself should probably also do something different when stop() 
is called, but I'm not sure what.

-Jason
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_event_timer.patch
Type: text/x-patch
Size: 427 bytes
Desc: not available
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20080314/7473b599/fix_event_timer.bin


More information about the SLDev mailing list