aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2012-01-05 16:03:21 +0000
committerDamian Minkov <damencho@jitsi.org>2012-01-05 16:03:21 +0000
commit35aec78296289dde643f0b8e82d1bbf1949ced15 (patch)
treee0561032170df518873264f1106fd75c34f77b51 /src
parent1b4e8b496111d176371c87803a7b490548f16409 (diff)
downloadjitsi-35aec78296289dde643f0b8e82d1bbf1949ced15.zip
jitsi-35aec78296289dde643f0b8e82d1bbf1949ced15.tar.gz
jitsi-35aec78296289dde643f0b8e82d1bbf1949ced15.tar.bz2
Fixes a class cast exception with dns event fire.
Diffstat (limited to 'src')
-rw-r--r--src/net/java/sip/communicator/plugin/reconnectplugin/ReconnectPluginActivator.java6
-rw-r--r--src/net/java/sip/communicator/service/sysactivity/event/SystemActivityEvent.java9
2 files changed, 12 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
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 a9fbcb4..c16cb73 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 class SystemActivityEvent
{
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 + "]";
+ }
}