From d72f188060f348a8710e48c004a200e4b832405a Mon Sep 17 00:00:00 2001 From: Damian Minkov Date: Wed, 24 Aug 2011 11:05:53 +0000 Subject: Fixes some problem with reconnecting and detecting interfaces. --- .../impl/netaddr/NetworkConfigurationWatcher.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/net/java/sip/communicator/impl/netaddr/NetworkConfigurationWatcher.java b/src/net/java/sip/communicator/impl/netaddr/NetworkConfigurationWatcher.java index 89208a3..cf2ebca 100644 --- a/src/net/java/sip/communicator/impl/netaddr/NetworkConfigurationWatcher.java +++ b/src/net/java/sip/communicator/impl/netaddr/NetworkConfigurationWatcher.java @@ -293,17 +293,14 @@ public class NetworkConfigurationWatcher { try { - // when waking up and there are no interfaces - // give time for devices to come up fully + // when there is a net change + // give time for devices to come up/down fully // before checking with them - if(activeInterfaces.size() == 0) + synchronized(this) { - synchronized(this) - { - try{ - wait(1000); - }catch(InterruptedException ex){} - } + try{ + wait(1000); + }catch(InterruptedException ex){} } Enumeration e = -- cgit v1.1