aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/googlecontacts/GoogleContactsQuery.java
diff options
context:
space:
mode:
authorhristoterezov <hristo@jitsi.org>2014-01-08 14:38:13 +0200
committerhristoterezov <hristo@jitsi.org>2014-01-08 14:38:13 +0200
commit135354be48db43089821729032cd1e44d54fe199 (patch)
tree1432403a454273e594f10e2d8f6cd54427691e5f /src/net/java/sip/communicator/impl/googlecontacts/GoogleContactsQuery.java
parent46888b088779c45c1b3e8aadb266e3b8b4e8bb51 (diff)
downloadjitsi-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.java18
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>.
*