diff options
author | Damian Minkov <damencho@jitsi.org> | 2012-01-05 16:03:21 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2012-01-05 16:03:21 +0000 |
commit | 35aec78296289dde643f0b8e82d1bbf1949ced15 (patch) | |
tree | e0561032170df518873264f1106fd75c34f77b51 /src/net/java/sip/communicator/plugin | |
parent | 1b4e8b496111d176371c87803a7b490548f16409 (diff) | |
download | jitsi-35aec78296289dde643f0b8e82d1bbf1949ced15.zip jitsi-35aec78296289dde643f0b8e82d1bbf1949ced15.tar.gz jitsi-35aec78296289dde643f0b8e82d1bbf1949ced15.tar.bz2 |
Fixes a class cast exception with dns event fire.
Diffstat (limited to 'src/net/java/sip/communicator/plugin')
-rw-r--r-- | src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java b/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java index 69ae129..b800ebb 100644 --- a/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java +++ b/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java @@ -413,8 +413,6 @@ public class ReconnectPluginActivator */ public synchronized void configurationChanged(ChangeEvent event) { - String ifaceName = (String)event.getSource(); - if(event.getType() == ChangeEvent.IFACE_UP) { // no connection so one is up, lets connect @@ -438,10 +436,12 @@ public class ReconnectPluginActivator needsReconnection.clear(); } - connectedInterfaces.add(ifaceName); + connectedInterfaces.add((String)event.getSource()); } else if(event.getType() == ChangeEvent.IFACE_DOWN) { + String ifaceName = (String)event.getSource(); + connectedInterfaces.remove(ifaceName); // one is down and at least one more is connected |