aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorDiva Canto2010-02-21 18:56:44 -0800
committerDiva Canto2010-02-21 18:56:44 -0800
commit70de6956ff6a3d833149156b6293122ef734b73d (patch)
treefce3f6a2e18a37c702dd57168dba445304855d6b /OpenSim/Data
parentMySQL tests pass, except T016_RandomSogWithSceneParts. Total mystery as to wh... (diff)
downloadopensim-SC_OLD-70de6956ff6a3d833149156b6293122ef734b73d.zip
opensim-SC_OLD-70de6956ff6a3d833149156b6293122ef734b73d.tar.gz
opensim-SC_OLD-70de6956ff6a3d833149156b6293122ef734b73d.tar.bz2
opensim-SC_OLD-70de6956ff6a3d833149156b6293122ef734b73d.tar.xz
Small bug fixes for making tests work.
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/Null/NullPresenceData.cs20
1 files changed, 12 insertions, 8 deletions
diff --git a/OpenSim/Data/Null/NullPresenceData.cs b/OpenSim/Data/Null/NullPresenceData.cs
index 40700cf..5f78691 100644
--- a/OpenSim/Data/Null/NullPresenceData.cs
+++ b/OpenSim/Data/Null/NullPresenceData.cs
@@ -43,16 +43,18 @@ namespace OpenSim.Data.Null
43 public NullPresenceData(string connectionString, string realm) 43 public NullPresenceData(string connectionString, string realm)
44 { 44 {
45 if (Instance == null) 45 if (Instance == null)
46 {
46 Instance = this; 47 Instance = this;
47 48
48 //Console.WriteLine("[XXX] NullRegionData constructor"); 49 //Console.WriteLine("[XXX] NullRegionData constructor");
49 // Let's stick in a test presence 50 // Let's stick in a test presence
50 PresenceData p = new PresenceData(); 51 PresenceData p = new PresenceData();
51 p.SessionID = UUID.Zero; 52 p.SessionID = UUID.Zero;
52 p.UserID = UUID.Zero.ToString(); 53 p.UserID = UUID.Zero.ToString();
53 p.Data = new Dictionary<string, string>(); 54 p.Data = new Dictionary<string, string>();
54 p.Data["Online"] = "true"; 55 p.Data["Online"] = true.ToString();
55 m_presenceData.Add(UUID.Zero, p); 56 m_presenceData.Add(UUID.Zero, p);
57 }
56 } 58 }
57 59
58 public bool Store(PresenceData data) 60 public bool Store(PresenceData data)
@@ -70,7 +72,9 @@ namespace OpenSim.Data.Null
70 return Instance.Get(sessionID); 72 return Instance.Get(sessionID);
71 73
72 if (m_presenceData.ContainsKey(sessionID)) 74 if (m_presenceData.ContainsKey(sessionID))
75 {
73 return m_presenceData[sessionID]; 76 return m_presenceData[sessionID];
77 }
74 78
75 return null; 79 return null;
76 } 80 }