summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-10 08:53:56 (EDT)
committerEike Stepper2007-10-10 08:53:56 (EDT)
commit394cf261b66f76300108f49ba0a6d41e71c396fa (patch)
treed1b417834a6076e58d792b4e4c81c4076eed3a33
parentc3e57965523b95bba0a03d312341bae9369bce43 (diff)
downloadcdo-394cf261b66f76300108f49ba0a6d41e71c396fa.zip
cdo-394cf261b66f76300108f49ba0a6d41e71c396fa.tar.gz
cdo-394cf261b66f76300108f49ba0a6d41e71c396fa.tar.bz2
[205668] Provide buddies example
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205668
-rw-r--r--plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/ClientSession.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/ClientSession.java b/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/ClientSession.java
index 88f5fa9..4fcef87 100644
--- a/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/ClientSession.java
+++ b/plugins/org.eclipse.net4j.buddies/src/org/eclipse/net4j/internal/buddies/ClientSession.java
@@ -15,6 +15,7 @@ import org.eclipse.net4j.buddies.IBuddySession;
import org.eclipse.net4j.buddies.internal.protocol.BuddyContainer;
import org.eclipse.net4j.buddies.internal.protocol.BuddyStateNotification;
import org.eclipse.net4j.buddies.protocol.IAccount;
+import org.eclipse.net4j.buddies.protocol.IBuddy;
import org.eclipse.net4j.buddies.protocol.IBuddyStateChangedEvent;
import org.eclipse.net4j.internal.buddies.bundle.OM;
import org.eclipse.net4j.util.event.IEvent;
@@ -111,7 +112,8 @@ public class ClientSession extends BuddyContainer implements IBuddySession, ILis
public void buddyRemoved(String userID)
{
- removeBuddy(userID);
+ IBuddy buddy = removeBuddy(userID);
+ LifecycleUtil.deactivate(buddy);
}
@Override