diff options
author | Justin Clark-Casey (justincc) | 2012-10-20 02:02:13 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-10-20 02:02:13 +0100 |
commit | da2b23f18d232230ac4d967f8d3b256aebd4741e (patch) | |
tree | e8ca08b230cfa8d11317532b176a405cc302eeb3 /OpenSim/Services/Connectors | |
parent | Add experimental [Groups] MessageOnlineUsersOnly option for Flotsam XmlRpc gr... (diff) | |
download | opensim-SC_OLD-da2b23f18d232230ac4d967f8d3b256aebd4741e.zip opensim-SC_OLD-da2b23f18d232230ac4d967f8d3b256aebd4741e.tar.gz opensim-SC_OLD-da2b23f18d232230ac4d967f8d3b256aebd4741e.tar.bz2 opensim-SC_OLD-da2b23f18d232230ac4d967f8d3b256aebd4741e.tar.xz |
Improve efficiency of friends notification by only make one PresenceService call for all friends rather than one for each friend.
However, large groups could still take a very long time since we still need to message each avatar on different simulators.
Diffstat (limited to 'OpenSim/Services/Connectors')
-rw-r--r-- | OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs b/OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs index e235733..6d5ce4b 100644 --- a/OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs +++ b/OpenSim/Services/Connectors/Friends/FriendsSimConnector.cs | |||
@@ -128,7 +128,7 @@ namespace OpenSim.Services.Connectors.Friends | |||
128 | return Call(region, sendData); | 128 | return Call(region, sendData); |
129 | } | 129 | } |
130 | 130 | ||
131 | public bool StatusNotify(GridRegion region, UUID userID, UUID friendID, bool online) | 131 | public bool StatusNotify(GridRegion region, UUID userID, string friendID, bool online) |
132 | { | 132 | { |
133 | Dictionary<string, object> sendData = new Dictionary<string, object>(); | 133 | Dictionary<string, object> sendData = new Dictionary<string, object>(); |
134 | //sendData["VERSIONMIN"] = ProtocolVersions.ClientProtocolVersionMin.ToString(); | 134 | //sendData["VERSIONMIN"] = ProtocolVersions.ClientProtocolVersionMin.ToString(); |
@@ -136,7 +136,7 @@ namespace OpenSim.Services.Connectors.Friends | |||
136 | sendData["METHOD"] = "status"; | 136 | sendData["METHOD"] = "status"; |
137 | 137 | ||
138 | sendData["FromID"] = userID.ToString(); | 138 | sendData["FromID"] = userID.ToString(); |
139 | sendData["ToID"] = friendID.ToString(); | 139 | sendData["ToID"] = friendID; |
140 | sendData["Online"] = online.ToString(); | 140 | sendData["Online"] = online.ToString(); |
141 | 141 | ||
142 | return Call(region, sendData); | 142 | return Call(region, sendData); |