diff options
author | Justin Clark-Casey (justincc) | 2011-11-14 17:18:51 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-11-14 17:18:51 +0000 |
commit | de895ee54a14f21ee0609e6a3636a31407495aa3 (patch) | |
tree | c6449e7ef1da31980644d36689f7fa158d5d6d0f /OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | |
parent | If a friends identifier which is too short is given to HGFriendsModule.GetOnl... (diff) | |
download | opensim-SC_OLD-de895ee54a14f21ee0609e6a3636a31407495aa3.zip opensim-SC_OLD-de895ee54a14f21ee0609e6a3636a31407495aa3.tar.gz opensim-SC_OLD-de895ee54a14f21ee0609e6a3636a31407495aa3.tar.bz2 opensim-SC_OLD-de895ee54a14f21ee0609e6a3636a31407495aa3.tar.xz |
Add very simple FriendsModuleTests.TestNoFriends()
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs index c952ebf..28a2f73 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs | |||
@@ -165,7 +165,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends | |||
165 | 165 | ||
166 | // Instantiate the request handler | 166 | // Instantiate the request handler |
167 | IHttpServer server = MainServer.GetHttpServer((uint)mPort); | 167 | IHttpServer server = MainServer.GetHttpServer((uint)mPort); |
168 | server.AddStreamHandler(new FriendsRequestHandler(this)); | 168 | |
169 | if (server != null) | ||
170 | server.AddStreamHandler(new FriendsRequestHandler(this)); | ||
169 | } | 171 | } |
170 | 172 | ||
171 | if (m_FriendsService == null) | 173 | if (m_FriendsService == null) |