diff --git a/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java b/src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java index 69ae12936..b800ebbf2 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 @@ private void handleProviderRemoved(ProtocolProviderService provider) */ 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 synchronized void configurationChanged(ChangeEvent event) 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 diff --git a/src/net/java/sip/communicator/service/sysactivity/event/SystemActivityEvent.java b/src/net/java/sip/communicator/service/sysactivity/event/SystemActivityEvent.java index a9fbcb414..c16cb73eb 100644 --- a/src/net/java/sip/communicator/service/sysactivity/event/SystemActivityEvent.java +++ b/src/net/java/sip/communicator/service/sysactivity/event/SystemActivityEvent.java @@ -108,4 +108,13 @@ public int getEventID() { return this.eventID; } + + /** + * Returns a String representation of this SystemActivityEvent object. + * + * @return A a String representation of this SystemActivityEvent object. + */ + public String toString() { + return getClass().getName() + "[eventID=" + eventID + "]"; + } }