From b60d104f8d3256e5422e4d7ea870e098e3b06e82 Mon Sep 17 00:00:00 2001 From: qode Date: Thu, 16 Aug 2007 19:47:40 +0000 Subject: [PATCH] Patch (0000226) now in SVN. Fixes the removal of friends from your friends list. Thanks samtao! git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1361 52acb1d6-8a22-11de-b505-999d5b087335 --- libsecondlife/FriendsManager.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libsecondlife/FriendsManager.cs b/libsecondlife/FriendsManager.cs index af53047e..788e6597 100644 --- a/libsecondlife/FriendsManager.cs +++ b/libsecondlife/FriendsManager.cs @@ -4,7 +4,6 @@ * * - Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: - * * - Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * - Neither the name of the Second Life Reverse Engineering Team nor the names @@ -401,6 +400,12 @@ namespace libsecondlife request.ExBlock.OtherID = agentID; Client.Network.SendPacket(request); + + lock (_Friends) + { + if (_Friends.ContainsKey(agentID)) + _Friends.Remove(agentID); + } } }