diff options
author | Damian Minkov <damencho@jitsi.org> | 2011-08-24 11:05:53 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2011-08-24 11:05:53 +0000 |
commit | d72f188060f348a8710e48c004a200e4b832405a (patch) | |
tree | 0767ea42e58f279d5b1394f1d639699613074a46 /src/net/java/sip | |
parent | 25053ad5b7e0ebcb03094b769da954fccad9fb98 (diff) | |
download | jitsi-d72f188060f348a8710e48c004a200e4b832405a.zip jitsi-d72f188060f348a8710e48c004a200e4b832405a.tar.gz jitsi-d72f188060f348a8710e48c004a200e4b832405a.tar.bz2 |
Fixes some problem with reconnecting and detecting interfaces.
Diffstat (limited to 'src/net/java/sip')
-rw-r--r-- | src/net/java/sip/communicator/impl/netaddr/NetworkConfigurationWatcher.java | 15 |
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 = |