aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/sip/communicator')
-rw-r--r--src/net/java/sip/communicator/impl/protocol/jabber/ProtocolProviderServiceJabberImpl.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/ProtocolProviderServiceJabberImpl.java b/src/net/java/sip/communicator/impl/protocol/jabber/ProtocolProviderServiceJabberImpl.java
index 039a29c..b664ec2 100644
--- a/src/net/java/sip/communicator/impl/protocol/jabber/ProtocolProviderServiceJabberImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/jabber/ProtocolProviderServiceJabberImpl.java
@@ -645,6 +645,13 @@ public class ProtocolProviderServiceJabberImpl
{
synchronized(initializationLock)
{
+ // if a thread is waiting for initializationLock and enters
+ // lets check whether someone hasn't already tried login and
+ // have succeeded,
+ // should prevent "Trace possible duplicate connections" prints
+ if(isRegistered())
+ return;
+
JabberLoginStrategy loginStrategy = createLoginStrategy();
userCredentials = loginStrategy.prepareLogin(authority, reasonCode);
if(!loginStrategy.loginPreparationSuccessful())