maybe terminateOldSessions is too slow, removed sleep

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7492 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent fb8b046bb4
commit d58071947a

@ -152,14 +152,13 @@ public final class serverCore extends AbstractBusyThread implements BusyThread {
// trying to stop session
s.setStopped(true);
try { Thread.sleep(100); } catch (final InterruptedException ex) {}
try { Thread.sleep(10); } catch (final InterruptedException ex) {}
// trying to interrupt session
synchronized (s) {
s.notify();
}
s.interrupt();
try {Thread.sleep(10);} catch (final InterruptedException ex) {}
// trying to close socket
if (s.isAlive()) {

Loading…
Cancel
Save