From d58071947aef3fbf013e88325266b0d724fbabbf Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 17 Feb 2011 23:36:46 +0000 Subject: [PATCH] maybe terminateOldSessions is too slow, removed sleep git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7492 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/server/serverCore.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/de/anomic/server/serverCore.java b/source/de/anomic/server/serverCore.java index 58d95e554..4b4e19917 100644 --- a/source/de/anomic/server/serverCore.java +++ b/source/de/anomic/server/serverCore.java @@ -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()) {