aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorTedd Hansen2008-01-05 02:10:37 +0000
committerTedd Hansen2008-01-05 02:10:37 +0000
commit8d15890554990a359da8294d1a25de58ab3cab79 (patch)
treec991140aa7d9c7eece1a238e17fed77e16e9cb7e /OpenSim
parentLog instead of crash on some specific unknown startup bug I'm getting (diff)
downloadopensim-SC-8d15890554990a359da8294d1a25de58ab3cab79.zip
opensim-SC-8d15890554990a359da8294d1a25de58ab3cab79.tar.gz
opensim-SC-8d15890554990a359da8294d1a25de58ab3cab79.tar.bz2
opensim-SC-8d15890554990a359da8294d1a25de58ab3cab79.tar.xz
And another log-instead-of-crash... when creating user fails.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Grid/UserServer/Main.cs22
1 files changed, 19 insertions, 3 deletions
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs
index 0f1d845..4645c7e 100644
--- a/OpenSim/Grid/UserServer/Main.cs
+++ b/OpenSim/Grid/UserServer/Main.cs
@@ -134,9 +134,25 @@ namespace OpenSim.Grid.UserServer
134 134
135 tempMD5Passwd = Util.Md5Hash(Util.Md5Hash(tempMD5Passwd) + ":" + ""); 135 tempMD5Passwd = Util.Md5Hash(Util.Md5Hash(tempMD5Passwd) + ":" + "");
136 136
137 LLUUID userID = m_userManager.AddUserProfile(tempfirstname, templastname, tempMD5Passwd, regX, regY); 137 LLUUID userID = new LLUUID();
138 RestObjectPoster.BeginPostObject<Guid>(m_userManager._config.InventoryUrl + "CreateInventory/", 138 try
139 userID.UUID); 139 {
140 userID =
141 m_userManager.AddUserProfile(tempfirstname, templastname, tempMD5Passwd, regX, regY);
142 } catch (Exception ex)
143 {
144 m_console.Error("SERVER", "Error creating user: {0}", ex.ToString());
145 }
146
147 try
148 {
149 RestObjectPoster.BeginPostObject<Guid>(m_userManager._config.InventoryUrl + "CreateInventory/",
150 userID.UUID);
151 }
152 catch (Exception ex)
153 {
154 m_console.Error("SERVER", "Error creating inventory for user: {0}", ex.ToString());
155 }
140 m_lastCreatedUser = userID; 156 m_lastCreatedUser = userID;
141 break; 157 break;
142 } 158 }