aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/net/java/sip/communicator/impl/netaddr/NetworkConfigurationWatcher.java15
1 files 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<NetworkInterface> e =