diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs index 7d763fa..9cdb1c2 100644 --- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs | |||
@@ -32,7 +32,6 @@ using Mono.Addins; | |||
32 | using Nini.Config; | 32 | using Nini.Config; |
33 | using OpenMetaverse; | 33 | using OpenMetaverse; |
34 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
35 | using OpenSim.Framework.Communications; | ||
36 | using OpenSim.Framework.Servers; | 35 | using OpenSim.Framework.Servers; |
37 | using OpenSim.Framework.Client; | 36 | using OpenSim.Framework.Client; |
38 | using OpenSim.Region.Framework.Interfaces; | 37 | using OpenSim.Region.Framework.Interfaces; |
@@ -182,7 +181,10 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage | |||
182 | "POST", m_RestURL + "/RetrieveMessages/", client.AgentId); | 181 | "POST", m_RestURL + "/RetrieveMessages/", client.AgentId); |
183 | 182 | ||
184 | if (msglist == null) | 183 | if (msglist == null) |
184 | { | ||
185 | m_log.WarnFormat("[OFFLINE MESSAGING]: WARNING null message list."); | 185 | m_log.WarnFormat("[OFFLINE MESSAGING]: WARNING null message list."); |
186 | return; | ||
187 | } | ||
186 | 188 | ||
187 | foreach (GridInstantMessage im in msglist) | 189 | foreach (GridInstantMessage im in msglist) |
188 | { | 190 | { |
@@ -223,12 +225,8 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage | |||
223 | return; | 225 | return; |
224 | } | 226 | } |
225 | 227 | ||
226 | Scene scene = FindScene(new UUID(im.fromAgentID)); | ||
227 | if (scene == null) | ||
228 | scene = m_SceneList[0]; | ||
229 | |||
230 | bool success = SynchronousRestObjectRequester.MakeRequest<GridInstantMessage, bool>( | 228 | bool success = SynchronousRestObjectRequester.MakeRequest<GridInstantMessage, bool>( |
231 | "POST", m_RestURL+"/SaveMessage/", im); | 229 | "POST", m_RestURL+"/SaveMessage/", im, 10000); |
232 | 230 | ||
233 | if (im.dialog == (byte)InstantMessageDialog.MessageFromAgent) | 231 | if (im.dialog == (byte)InstantMessageDialog.MessageFromAgent) |
234 | { | 232 | { |