DRTVWR-476, SL-12197: Don't throw Stopping from main coroutine.
The new LLCoros::Stop exception is intended to terminate long-lived coroutines -- not interrupt mainstream shutdown processing. Only throw it on an explicitly-launched coroutine. Make LLCoros::getName() (used by the above test) static. As with other LLCoros methods, it might be called after the LLCoros LLSingleton instance has been deleted. Requiring the caller to call instance() implies a possible need to also call wasDeleted(). Encapsulate that nuance into a static method instead.
Showing
- indra/llcommon/llcoros.cpp 11 additions, 1 deletionindra/llcommon/llcoros.cpp
- indra/llcommon/llcoros.h 2 additions, 2 deletionsindra/llcommon/llcoros.h
- indra/llcommon/lleventcoro.cpp 1 addition, 1 deletionindra/llcommon/lleventcoro.cpp
- indra/llmessage/llavatarnamecache.cpp 2 additions, 2 deletionsindra/llmessage/llavatarnamecache.cpp
- indra/newview/llaccountingcostmanager.cpp 2 additions, 2 deletionsindra/newview/llaccountingcostmanager.cpp
- indra/viewer_components/login/lllogin.cpp 2 additions, 2 deletionsindra/viewer_components/login/lllogin.cpp
Loading
Please register or sign in to comment