aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorDiva Canto2009-08-17 17:00:27 -0700
committerDiva Canto2009-08-17 17:00:27 -0700
commit806f48d81a4d47779aef217ace2e141b590055ed (patch)
treee2797a9a6b1402b4c5861784ef14db59b222f2bb /OpenSim/Framework
parentMerge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim (diff)
downloadopensim-SC-806f48d81a4d47779aef217ace2e141b590055ed.zip
opensim-SC-806f48d81a4d47779aef217ace2e141b590055ed.tar.gz
opensim-SC-806f48d81a4d47779aef217ace2e141b590055ed.tar.bz2
opensim-SC-806f48d81a4d47779aef217ace2e141b590055ed.tar.xz
Added one conditional missing on login, for creating inventory if it doesn't exist already. This hopefully fixes the master avatar problems on standalone.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Communications/Services/LoginService.cs14
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Framework/Communications/Services/LoginService.cs b/OpenSim/Framework/Communications/Services/LoginService.cs
index 8a8108b..cac6616 100644
--- a/OpenSim/Framework/Communications/Services/LoginService.cs
+++ b/OpenSim/Framework/Communications/Services/LoginService.cs
@@ -1131,7 +1131,18 @@ namespace OpenSim.Framework.Communications.Services
1131 // tools are creating the user profile directly in the database without creating the inventory. At 1131 // tools are creating the user profile directly in the database without creating the inventory. At
1132 // this time we'll accomodate them by lazily creating the user inventory now if it doesn't already 1132 // this time we'll accomodate them by lazily creating the user inventory now if it doesn't already
1133 // exist. 1133 // exist.
1134 if ((m_interInventoryService != null) && !m_interInventoryService.CreateNewUserInventory(userID)) 1134 if (m_interInventoryService != null)
1135 {
1136 if (!m_interInventoryService.CreateNewUserInventory(userID))
1137 {
1138 throw new Exception(
1139 String.Format(
1140 "The inventory creation request for user {0} did not succeed."
1141 + " Please contact your inventory service provider for more information.",
1142 userID));
1143 }
1144 }
1145 else if ((m_InventoryService != null) && !m_InventoryService.CreateUserInventory(userID))
1135 { 1146 {
1136 throw new Exception( 1147 throw new Exception(
1137 String.Format( 1148 String.Format(
@@ -1140,6 +1151,7 @@ namespace OpenSim.Framework.Communications.Services
1140 userID)); 1151 userID));
1141 } 1152 }
1142 1153
1154
1143 m_log.InfoFormat("[LOGIN]: A new inventory skeleton was successfully created for user {0}", userID); 1155 m_log.InfoFormat("[LOGIN]: A new inventory skeleton was successfully created for user {0}", userID);
1144 1156
1145 if (m_InventoryService != null) 1157 if (m_InventoryService != null)