diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index 8705dd5..77abcd7 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -929,8 +929,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
929 | private string PrepareScriptInstanceForSave(SceneObjectGroup grp, bool fireDetachEvent) | 929 | private string PrepareScriptInstanceForSave(SceneObjectGroup grp, bool fireDetachEvent) |
930 | { | 930 | { |
931 | if (fireDetachEvent) | 931 | if (fireDetachEvent) |
932 | { | ||
932 | m_scene.EventManager.TriggerOnAttach(grp.LocalId, grp.FromItemID, UUID.Zero); | 933 | m_scene.EventManager.TriggerOnAttach(grp.LocalId, grp.FromItemID, UUID.Zero); |
933 | 934 | ||
935 | // Allow detach event time to do some work before stopping the script | ||
936 | Thread.Sleep(2); | ||
937 | } | ||
938 | |||
934 | using (StringWriter sw = new StringWriter()) | 939 | using (StringWriter sw = new StringWriter()) |
935 | { | 940 | { |
936 | using (XmlTextWriter writer = new XmlTextWriter(sw)) | 941 | using (XmlTextWriter writer = new XmlTextWriter(sw)) |