Fixes a class cast exception with dns event fire.

cusax-fix
Damian Minkov 15 years ago
parent 1b4e8b4961
commit 35aec78296

@ -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

@ -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 + "]";
}
}

Loading…
Cancel
Save