aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/plugin
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2011-09-30 14:15:22 +0000
committerDamian Minkov <damencho@jitsi.org>2011-09-30 14:15:22 +0000
commite20ad10747ed5f7ca3ca7d2bcf09c08bb238cc9e (patch)
treec187083c3266b388ecf54f1023e5f410b6de8137 /src/net/java/sip/communicator/plugin
parent1269430cb48ab52f80643ce29e2c483354524cc5 (diff)
downloadjitsi-e20ad10747ed5f7ca3ca7d2bcf09c08bb238cc9e.zip
jitsi-e20ad10747ed5f7ca3ca7d2bcf09c08bb238cc9e.tar.gz
jitsi-e20ad10747ed5f7ca3ca7d2bcf09c08bb238cc9e.tar.bz2
Fixes some reconnect issues and early events where still no dns is configured (now waiting half a second). Fixes jabber provider not cleaned up after connection failed (during login process). Fixes an needed reconnect when more than one interface available and network is going down (stand by).
Diffstat (limited to 'src/net/java/sip/communicator/plugin')
-rw-r--r--src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java b/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java
index 2602439..f8d9525 100644
--- a/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java
+++ b/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java
@@ -113,7 +113,7 @@ public class ReconnectPluginActivator
/**
* Start of the delay interval when starting a reconnect.
*/
- private static final int RECONNECT_DELAY_MIN = 1; // sec
+ private static final int RECONNECT_DELAY_MIN = 2; // sec
/**
* The end of the interval for the initial reconnect.
@@ -784,6 +784,24 @@ public class ReconnectPluginActivator
if(timer == null)
return;
+ if(connectedInterfaces.size() == 0)
+ {
+ // well there is no network we just need
+ // this provider in needs reconnection when
+ // there is one
+ // means we started unregistering while
+ // network was going down and meanwhile there
+ // were no connected interface, this happens
+ // when we have more than one connected
+ // interface and we got 2 events for down iface
+ needsReconnection.add(pp);
+
+ if(currentlyReconnecting.containsKey(pp))
+ currentlyReconnecting.remove(pp).cancel();
+
+ return;
+ }
+
currentlyReconnecting.put(pp, task);
if (logger.isTraceEnabled())