aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/UserServer/UserLoginService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Grid/UserServer/UserLoginService.cs')
-rw-r--r--OpenSim/Grid/UserServer/UserLoginService.cs39
1 files changed, 22 insertions, 17 deletions
diff --git a/OpenSim/Grid/UserServer/UserLoginService.cs b/OpenSim/Grid/UserServer/UserLoginService.cs
index 95192e3..f0140a5 100644
--- a/OpenSim/Grid/UserServer/UserLoginService.cs
+++ b/OpenSim/Grid/UserServer/UserLoginService.cs
@@ -6,6 +6,7 @@ using OpenSim.Framework.Data;
6using OpenSim.Framework.UserManagement; 6using OpenSim.Framework.UserManagement;
7using OpenSim.Framework.Utilities; 7using OpenSim.Framework.Utilities;
8using OpenSim.Framework.Configuration; 8using OpenSim.Framework.Configuration;
9using OpenSim.Framework.Communications;
9 10
10namespace OpenSim.Grid.UserServer 11namespace OpenSim.Grid.UserServer
11{ 12{
@@ -13,8 +14,8 @@ namespace OpenSim.Grid.UserServer
13 { 14 {
14 public UserConfig m_config; 15 public UserConfig m_config;
15 16
16 public UserLoginService(UserManagerBase userManager, UserConfig config, string welcomeMess) 17 public UserLoginService(UserManagerBase userManager, IInventoryServices inventoryServer, UserConfig config, string welcomeMess)
17 : base(userManager, welcomeMess) 18 : base(userManager, inventoryServer, welcomeMess)
18 { 19 {
19 m_config = config; 20 m_config = config;
20 } 21 }
@@ -71,25 +72,29 @@ namespace OpenSim.Grid.UserServer
71 theUser.currentAgent.currentHandle = SimInfo.regionHandle; 72 theUser.currentAgent.currentHandle = SimInfo.regionHandle;
72 73
73 System.Console.WriteLine("Informing region --> " + SimInfo.httpServerURI); 74 System.Console.WriteLine("Informing region --> " + SimInfo.httpServerURI);
74 // Send 75 // Send
75 try 76 try
76 { 77 {
77 XmlRpcRequest GridReq = new XmlRpcRequest("expect_user", SendParams); 78 XmlRpcRequest GridReq = new XmlRpcRequest("expect_user", SendParams);
78 XmlRpcResponse GridResp = GridReq.Send(SimInfo.httpServerURI, 6000); 79 XmlRpcResponse GridResp = GridReq.Send(SimInfo.httpServerURI, 6000);
79 } 80 }
80 catch( WebException e ) 81 catch( WebException e )
81 { 82 {
82 switch( e.Status ) 83 switch( e.Status )
83 { 84 {
84 case WebExceptionStatus.Timeout: 85 case WebExceptionStatus.Timeout:
85 //TODO: Send him to nearby or default region instead 86 //TODO: Send him to nearby or default region instead
86 break; 87 break;
87 88
88 default: 89 default:
89 throw; 90 throw;
90 } 91 }
91 } 92 }
92 } 93 }
93 } 94 }
94} 95}
95 96
97
98
99
100