aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid
diff options
context:
space:
mode:
authorTeravus Ovares2008-01-07 19:30:10 +0000
committerTeravus Ovares2008-01-07 19:30:10 +0000
commit0678a4d52de833945a211ad1201a6c49ea1126e9 (patch)
tree3e6b7a19dd8a09e175677d4af5e951bd585a6b29 /OpenSim/Grid
parent*Added ability to update only necessary data on insertRegion for the grid ser... (diff)
downloadopensim-SC_OLD-0678a4d52de833945a211ad1201a6c49ea1126e9.zip
opensim-SC_OLD-0678a4d52de833945a211ad1201a6c49ea1126e9.tar.gz
opensim-SC_OLD-0678a4d52de833945a211ad1201a6c49ea1126e9.tar.bz2
opensim-SC_OLD-0678a4d52de833945a211ad1201a6c49ea1126e9.tar.xz
* Message Server stuff.
Diffstat (limited to 'OpenSim/Grid')
-rw-r--r--OpenSim/Grid/MessagingServer/MessageService.cs22
1 files changed, 11 insertions, 11 deletions
diff --git a/OpenSim/Grid/MessagingServer/MessageService.cs b/OpenSim/Grid/MessagingServer/MessageService.cs
index d8221dc..22d149f 100644
--- a/OpenSim/Grid/MessagingServer/MessageService.cs
+++ b/OpenSim/Grid/MessagingServer/MessageService.cs
@@ -144,20 +144,20 @@ namespace OpenSim.Grid.MessagingServer
144 /// <param name="friendID"></param> 144 /// <param name="friendID"></param>
145 public void addBackReference(LLUUID agentID, LLUUID friendID) 145 public void addBackReference(LLUUID agentID, LLUUID friendID)
146 { 146 {
147 if (m_presence_BackReferences.Contains(agentID)) 147 if (m_presence_BackReferences.Contains(friendID))
148 { 148 {
149 List<LLUUID> presenseBackReferences = (List<LLUUID>)m_presence_BackReferences[agentID]; 149 List<LLUUID> presenseBackReferences = (List<LLUUID>)m_presence_BackReferences[friendID];
150 if (!presenseBackReferences.Contains(friendID)) 150 if (!presenseBackReferences.Contains(agentID))
151 { 151 {
152 presenseBackReferences.Add(friendID); 152 presenseBackReferences.Add(agentID);
153 } 153 }
154 m_presence_BackReferences[agentID] = presenseBackReferences; 154 m_presence_BackReferences[friendID] = presenseBackReferences;
155 } 155 }
156 else 156 else
157 { 157 {
158 List<LLUUID> presenceBackReferences = new List<LLUUID>(); 158 List<LLUUID> presenceBackReferences = new List<LLUUID>();
159 presenceBackReferences.Add(friendID); 159 presenceBackReferences.Add(agentID);
160 m_presence_BackReferences[agentID] = presenceBackReferences; 160 m_presence_BackReferences[friendID] = presenceBackReferences;
161 } 161 }
162 } 162 }
163 163
@@ -168,12 +168,12 @@ namespace OpenSim.Grid.MessagingServer
168 /// <param name="friendID"></param> 168 /// <param name="friendID"></param>
169 public void removeBackReference(LLUUID agentID, LLUUID friendID) 169 public void removeBackReference(LLUUID agentID, LLUUID friendID)
170 { 170 {
171 if (m_presence_BackReferences.Contains(agentID)) 171 if (m_presence_BackReferences.Contains(friendID))
172 { 172 {
173 List<LLUUID> presenseBackReferences = (List<LLUUID>)m_presence_BackReferences[agentID]; 173 List<LLUUID> presenseBackReferences = (List<LLUUID>)m_presence_BackReferences[friendID];
174 if (presenseBackReferences.Contains(friendID)) 174 if (presenseBackReferences.Contains(agentID))
175 { 175 {
176 presenseBackReferences.Remove(friendID); 176 presenseBackReferences.Remove(agentID);
177 } 177 }
178 178
179 // If there are no more backreferences for this agent, 179 // If there are no more backreferences for this agent,