diff options
author | Damian Minkov <damencho@jitsi.org> | 2011-02-17 15:38:18 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2011-02-17 15:38:18 +0000 |
commit | f3845d02cb66580b3a4851c07421bded74dcd3ef (patch) | |
tree | 15241ff7d9caa61a49418995601fe9babe7637f4 /src/net/java/sip/communicator/impl/protocol/zeroconf/BonjourService.java | |
parent | 99dea31ea21b252a1a225deee4f959291e41254a (diff) | |
download | jitsi-f3845d02cb66580b3a4851c07421bded74dcd3ef.zip jitsi-f3845d02cb66580b3a4851c07421bded74dcd3ef.tar.gz jitsi-f3845d02cb66580b3a4851c07421bded74dcd3ef.tar.bz2 |
When creating new account (simple or advance form) make sure we don't reuse old AccountRegistration instances.
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol/zeroconf/BonjourService.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/protocol/zeroconf/BonjourService.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/zeroconf/BonjourService.java b/src/net/java/sip/communicator/impl/protocol/zeroconf/BonjourService.java index bd1ed01..b8fe5dc 100644 --- a/src/net/java/sip/communicator/impl/protocol/zeroconf/BonjourService.java +++ b/src/net/java/sip/communicator/impl/protocol/zeroconf/BonjourService.java @@ -402,10 +402,14 @@ public class BonjourService extends Thread public void serviceRemoved(ServiceEvent event) { String name = event.getName(); - if (name.equals(id)) return; + if (name.equals(id)) + return; ContactZeroconfImpl contact = getContact(name, null); + if(contact == null) + return; + opSetPersPresence.changePresenceStatusForContact(contact, ZeroconfStatusEnum.OFFLINE); if (logger.isDebugEnabled()) |