throw x;
}
portstart++;
- try {Thread.sleep(25);}catch( InterruptedException ti){Thread.interrupted();}
+ try {
+ Thread.sleep(25);
+ } catch (InterruptedException ti) {
+ Thread.currentThread().interrupt();
+ }
retries = bind(socket,portstart,retries);
}
}
throw x;
}
portstart++;
- try {Thread.sleep(25);}catch( InterruptedException ti){Thread.interrupted();}
+ try {
+ Thread.sleep(25);
+ } catch (InterruptedException ti) {
+ Thread.currentThread().interrupt();
+ }
retries = bindUdp(socket,portstart,retries);
}
}
try {
wait(addWaitTimeout);
} catch ( InterruptedException e ) {
- Thread.interrupted();
+ Thread.currentThread().interrupt();
}
} while ( addLocked || removeLocked );
}
try {
wait(removeWaitTimeout);
} catch ( InterruptedException e ) {
- Thread.interrupted();
+ Thread.currentThread().interrupt();
}
} while ( ( addLocked || ! dataAvailable ) && removeEnabled );
remover=null;