aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorjustincc2009-12-15 15:10:29 +0000
committerjustincc2009-12-15 15:10:29 +0000
commit6f2961f0e2492dc7cc1a2753e42a0f960fcc6326 (patch)
treeb8a412fc174e9c72c155936d0bf925ad557025c5
parentreplace a couple of xmlrpc invocations with invoke() instead of send() (diff)
downloadopensim-SC-6f2961f0e2492dc7cc1a2753e42a0f960fcc6326.zip
opensim-SC-6f2961f0e2492dc7cc1a2753e42a0f960fcc6326.tar.gz
opensim-SC-6f2961f0e2492dc7cc1a2753e42a0f960fcc6326.tar.bz2
opensim-SC-6f2961f0e2492dc7cc1a2753e42a0f960fcc6326.tar.xz
Fix casting problems where I assumed return value was still a XmlRpcResponse rather than the value HashTable
-rw-r--r--OpenSim/Grid/MessagingServer.Modules/InterMessageUserServerModule.cs12
-rw-r--r--OpenSim/Grid/MessagingServer.Modules/MessageService.cs7
2 files changed, 11 insertions, 8 deletions
diff --git a/OpenSim/Grid/MessagingServer.Modules/InterMessageUserServerModule.cs b/OpenSim/Grid/MessagingServer.Modules/InterMessageUserServerModule.cs
index d667af3..ea0a088 100644
--- a/OpenSim/Grid/MessagingServer.Modules/InterMessageUserServerModule.cs
+++ b/OpenSim/Grid/MessagingServer.Modules/InterMessageUserServerModule.cs
@@ -113,12 +113,14 @@ namespace OpenSim.Grid.MessagingServer.Modules
113 // Send Request 113 // Send Request
114 try 114 try
115 { 115 {
116 XmlRpcRequest UserReq = new XmlRpcRequest("register_messageserver", SendParams); 116 XmlRpcRequest UserReq = new XmlRpcRequest("register_messageserver", SendParams);
117 XmlRpcResponse UserResp = (XmlRpcResponse)UserReq.Invoke(srv); 117 ////XmlRpcResponse UserResp = UserReq.Send(srv, 16000);
118 //XmlRpcResponse UserResp = UserReq.Send(srv, 16000); 118
119 //// Process Response
120 //Hashtable GridRespData = (Hashtable)UserResp.Value;
121
122 Hashtable GridRespData = (Hashtable)UserReq.Invoke(srv);
119 123
120 // Process Response
121 Hashtable GridRespData = (Hashtable)UserResp.Value;
122 // if we got a response, we were successful 124 // if we got a response, we were successful
123 if (!GridRespData.ContainsKey("responsestring")) 125 if (!GridRespData.ContainsKey("responsestring"))
124 success = false; 126 success = false;
diff --git a/OpenSim/Grid/MessagingServer.Modules/MessageService.cs b/OpenSim/Grid/MessagingServer.Modules/MessageService.cs
index ec7791b..731946e 100644
--- a/OpenSim/Grid/MessagingServer.Modules/MessageService.cs
+++ b/OpenSim/Grid/MessagingServer.Modules/MessageService.cs
@@ -269,10 +269,11 @@ namespace OpenSim.Grid.MessagingServer.Modules
269 269
270 IList parameters = new ArrayList(); 270 IList parameters = new ArrayList();
271 parameters.Add(param); 271 parameters.Add(param);
272 XmlRpcRequest req = new XmlRpcRequest("get_user_friend_list", parameters); 272 XmlRpcRequest req = new XmlRpcRequest("get_user_friend_list", parameters);
273 XmlRpcResponse resp = (XmlRpcResponse)req.Invoke(m_cfg.UserServerURL);
274 //XmlRpcResponse resp = req.Send(m_cfg.UserServerURL, 3000); 273 //XmlRpcResponse resp = req.Send(m_cfg.UserServerURL, 3000);
275 Hashtable respData = (Hashtable)resp.Value; 274 //Hashtable respData = (Hashtable)resp.Value;
275
276 Hashtable respData = (Hashtable)req.Invoke(m_cfg.UserServerURL);
276 277
277 if (respData.Contains("avcount")) 278 if (respData.Contains("avcount"))
278 { 279 {