diff options
author | UbitUmarov | 2018-03-28 04:28:36 +0100 |
---|---|---|
committer | UbitUmarov | 2018-03-28 04:28:36 +0100 |
commit | 4958425e373c6beca51a538cb1fa9f9d476c7e27 (patch) | |
tree | f469e19fdbcfba2a8c0fb8aa2832fb43fc0bf245 /OpenSim/Region | |
parent | fix previus commit with the right source file :( (diff) | |
download | opensim-SC_OLD-4958425e373c6beca51a538cb1fa9f9d476c7e27.zip opensim-SC_OLD-4958425e373c6beca51a538cb1fa9f9d476c7e27.tar.gz opensim-SC_OLD-4958425e373c6beca51a538cb1fa9f9d476c7e27.tar.bz2 opensim-SC_OLD-4958425e373c6beca51a538cb1fa9f9d476c7e27.tar.xz |
mantis8309 add extra try{}catch
Diffstat (limited to 'OpenSim/Region')
-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) |