Fixes some problem with reconnecting and detecting interfaces.

cusax-fix
Damian Minkov 15 years ago
parent 25053ad5b7
commit d72f188060

@ -293,17 +293,14 @@ private void checkNetworkInterfaces(boolean fireEvents)
{
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 =

Loading…
Cancel
Save