mantis8309 add extra try{}catch

0.9.0.1-postfixes
UbitUmarov 2018-03-28 04:28:36 +01:00
parent 6b02c99194
commit 4958425e37
1 changed files with 11 additions and 4 deletions

View File

@ -703,11 +703,18 @@ namespace OpenSim.Region.Framework.Scenes
{
InventoryFolderBase folder = new InventoryFolderBase(folderID, userID);
try
{
if (InventoryService.PurgeFolder(folder))
m_log.DebugFormat("[AGENT INVENTORY]: folder {0} purged successfully", folderID);
else
m_log.WarnFormat("[AGENT INVENTORY]: could not purge folder {0}", folderID);
}
catch (Exception e)
{
m_log.WarnFormat("[AGENT INVENTORY]: Exception on async purge folder for user {0}: {1}", userID, e.Message);
}
}
private void PurgeFolderCompleted(IAsyncResult iar)
{