diff options
author | Rider Linden <none@none> | 2015-04-13 09:37:09 -0700 |
---|---|---|
committer | Rider Linden <none@none> | 2015-04-13 09:37:09 -0700 |
commit | fe8dec32dbdd6085dd582c49134551638561ca0e (patch) | |
tree | 8adf11b88185879911fca64825e73b95ff9db972 /indra/newview/llnotificationstorage.cpp | |
parent | 2d3e4576d7a1f6d5f2a9c0596cefe3f62753b2fa (diff) | |
parent | 5c6cf3e7fb9f592e3a293921175b64b515bac23f (diff) |
Merge
Diffstat (limited to 'indra/newview/llnotificationstorage.cpp')
-rwxr-xr-x | indra/newview/llnotificationstorage.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/indra/newview/llnotificationstorage.cpp b/indra/newview/llnotificationstorage.cpp index e9970de58c..3418b33d37 100755 --- a/indra/newview/llnotificationstorage.cpp +++ b/indra/newview/llnotificationstorage.cpp @@ -123,14 +123,18 @@ bool LLNotificationStorage::readNotifications(LLSD& pNotificationData, bool is_n { LLPointer<LLSDParser> parser = new LLSDXMLParser(); didFileRead = (parser->parse(notifyFile, pNotificationData, LLSDSerialize::SIZE_UNLIMITED) >= 0); + notifyFile.close(); + if (!didFileRead) { LL_WARNS("LLNotificationStorage") << "Failed to parse open notifications from file '" << mFileName - << "'" << LL_ENDL; + << "'" << LL_ENDL; + LLFile::remove(filename); + LL_WARNS("LLNotificationStorage") << "Removed invalid open notifications file '" << mFileName + << "'" << LL_ENDL; } } - - LL_INFOS("LLNotificationStorage") << "ending read '" << filename << "'" << LL_ENDL; + if (!didFileRead) { if(is_new_filename) |