diff options
author | hristoterezov <hristo@jitsi.org> | 2014-01-08 14:38:13 +0200 |
---|---|---|
committer | hristoterezov <hristo@jitsi.org> | 2014-01-08 14:38:13 +0200 |
commit | 135354be48db43089821729032cd1e44d54fe199 (patch) | |
tree | 1432403a454273e594f10e2d8f6cd54427691e5f /src/net/java/sip/communicator/impl/googlecontacts/GoogleContactsQuery.java | |
parent | 46888b088779c45c1b3e8aadb266e3b8b4e8bb51 (diff) | |
download | jitsi-135354be48db43089821729032cd1e44d54fe199.zip jitsi-135354be48db43089821729032cd1e44d54fe199.tar.gz jitsi-135354be48db43089821729032cd1e44d54fe199.tar.bz2 |
Fixes issues with the async queries of the contact list which may cause
missing contacts.
Diffstat (limited to 'src/net/java/sip/communicator/impl/googlecontacts/GoogleContactsQuery.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/googlecontacts/GoogleContactsQuery.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/googlecontacts/GoogleContactsQuery.java b/src/net/java/sip/communicator/impl/googlecontacts/GoogleContactsQuery.java index 4286a15..b653b95 100644 --- a/src/net/java/sip/communicator/impl/googlecontacts/GoogleContactsQuery.java +++ b/src/net/java/sip/communicator/impl/googlecontacts/GoogleContactsQuery.java @@ -135,6 +135,24 @@ public class GoogleContactsQuery }); } + @Override + public synchronized void start() + { + boolean hasStarted = false; + + try + { + super.start(); + hasStarted = true; + } + finally + { + if (!hasStarted) + { + getContactSource().removeQuery(this); + } + } + } /** * Gets the <tt>contactDetails</tt> to be set on a <tt>SourceContact</tt>. * |