diff options
author | Tedd Hansen | 2008-01-05 02:10:37 +0000 |
---|---|---|
committer | Tedd Hansen | 2008-01-05 02:10:37 +0000 |
commit | 8d15890554990a359da8294d1a25de58ab3cab79 (patch) | |
tree | c991140aa7d9c7eece1a238e17fed77e16e9cb7e /OpenSim/Grid/UserServer/Main.cs | |
parent | Log instead of crash on some specific unknown startup bug I'm getting (diff) | |
download | opensim-SC_OLD-8d15890554990a359da8294d1a25de58ab3cab79.zip opensim-SC_OLD-8d15890554990a359da8294d1a25de58ab3cab79.tar.gz opensim-SC_OLD-8d15890554990a359da8294d1a25de58ab3cab79.tar.bz2 opensim-SC_OLD-8d15890554990a359da8294d1a25de58ab3cab79.tar.xz |
And another log-instead-of-crash... when creating user fails.
Diffstat (limited to 'OpenSim/Grid/UserServer/Main.cs')
-rw-r--r-- | OpenSim/Grid/UserServer/Main.cs | 22 |
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 | } |