aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Addons
diff options
context:
space:
mode:
authorOren Hurvitz2014-01-09 18:34:10 +0200
committerJustin Clark-Casey (justincc)2014-01-16 00:10:10 +0000
commit21bc799a17f6f0315256d901f3ec226a39f93a51 (patch)
tree46c8fe969976f190a7e1543ee26e2f2d55d07f5b /OpenSim/Addons
parentRemove old IInterRegionComms and references. This hasn't been used since 200... (diff)
downloadopensim-SC_OLD-21bc799a17f6f0315256d901f3ec226a39f93a51.zip
opensim-SC_OLD-21bc799a17f6f0315256d901f3ec226a39f93a51.tar.gz
opensim-SC_OLD-21bc799a17f6f0315256d901f3ec226a39f93a51.tar.bz2
opensim-SC_OLD-21bc799a17f6f0315256d901f3ec226a39f93a51.tar.xz
Fixed offline IM
Diffstat (limited to 'OpenSim/Addons')
-rw-r--r--OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs12
1 files changed, 4 insertions, 8 deletions
diff --git a/OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs b/OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs
index 6731923..d36f9a4 100644
--- a/OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs
+++ b/OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs
@@ -1,4 +1,4 @@
1/* 1/*
2 * Copyright (c) Contributors, http://opensimulator.org/ 2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders. 3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 * 4 *
@@ -100,7 +100,7 @@ namespace OpenSim.OfflineIM
100 return false; 100 return false;
101 } 101 }
102 102
103 string imXml = string.Empty; 103 string imXml;
104 using (MemoryStream mstream = new MemoryStream()) 104 using (MemoryStream mstream = new MemoryStream())
105 { 105 {
106 XmlWriterSettings settings = new XmlWriterSettings(); 106 XmlWriterSettings settings = new XmlWriterSettings();
@@ -110,13 +110,9 @@ namespace OpenSim.OfflineIM
110 { 110 {
111 m_serializer.Serialize(writer, im); 111 m_serializer.Serialize(writer, im);
112 writer.Flush(); 112 writer.Flush();
113
114 mstream.Position = 0;
115 using (StreamReader sreader = new StreamReader(mstream))
116 {
117 imXml = sreader.ReadToEnd();
118 }
119 } 113 }
114
115 imXml = Util.UTF8.GetString(mstream.ToArray());
120 } 116 }
121 117
122 OfflineIMData data = new OfflineIMData(); 118 OfflineIMData data = new OfflineIMData();