diff options
author | Nicky <none@none> | 2012-07-13 14:04:45 +0200 |
---|---|---|
committer | Nicky <none@none> | 2012-07-13 14:04:45 +0200 |
commit | c0e8656477e41fffa26be9a23bef1c5bb1357330 (patch) | |
tree | c074fc735662cbc6708f4b7527cc0706c9639d4a | |
parent | 9b856a124ac11f976c7913d1ce2af8d57ab0464c (diff) |
Crashfix: Stop notifications when we're about to exit.
-rw-r--r-- | indra/newview/llnotificationmanager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llnotificationmanager.cpp b/indra/newview/llnotificationmanager.cpp index f792f53ac5..3d8150eed3 100644 --- a/indra/newview/llnotificationmanager.cpp +++ b/indra/newview/llnotificationmanager.cpp @@ -97,6 +97,13 @@ bool LLNotificationManager::onNotification(const LLSD& notify) { LLSysHandler* handle = NULL; + // Don't bother if we're going down. + // Otherwise we might crash when trying to use handlers that are already dead. + if( LLApp::isExiting() ) + { + return false; + } + if (LLNotifications::destroyed()) return false; |