diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs index 3fde5f1..84bad25 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs | |||
@@ -703,10 +703,17 @@ namespace OpenSim.Region.Framework.Scenes | |||
703 | { | 703 | { |
704 | InventoryFolderBase folder = new InventoryFolderBase(folderID, userID); | 704 | InventoryFolderBase folder = new InventoryFolderBase(folderID, userID); |
705 | 705 | ||
706 | if (InventoryService.PurgeFolder(folder)) | 706 | try |
707 | m_log.DebugFormat("[AGENT INVENTORY]: folder {0} purged successfully", folderID); | 707 | { |
708 | else | 708 | if (InventoryService.PurgeFolder(folder)) |
709 | m_log.WarnFormat("[AGENT INVENTORY]: could not purge folder {0}", folderID); | 709 | m_log.DebugFormat("[AGENT INVENTORY]: folder {0} purged successfully", folderID); |
710 | else | ||
711 | m_log.WarnFormat("[AGENT INVENTORY]: could not purge folder {0}", folderID); | ||
712 | } | ||
713 | catch (Exception e) | ||
714 | { | ||
715 | m_log.WarnFormat("[AGENT INVENTORY]: Exception on async purge folder for user {0}: {1}", userID, e.Message); | ||
716 | } | ||
710 | } | 717 | } |
711 | 718 | ||
712 | private void PurgeFolderCompleted(IAsyncResult iar) | 719 | private void PurgeFolderCompleted(IAsyncResult iar) |