*) moving sleep to a better place

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3895 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
(no author) 18 years ago
parent 7a1b811d18
commit 2784820ee3

@ -1119,12 +1119,11 @@ public final class serverCore extends serverAbstractThread implements serverThre
System.err.println("ERROR: (internal) " + e);
} finally {
try {
if (this.controlSocket.isClosed()) return;
// flush data
this.out.flush();
// sleep for a while
try {Thread.sleep(1000);} catch (InterruptedException e) {}
// maybe this doesn't work for all SSL socket implementations
if (!(this.controlSocket instanceof SSLSocket)) {
this.controlSocket.shutdownInput();
@ -1135,6 +1134,8 @@ public final class serverCore extends serverAbstractThread implements serverThre
this.in.close();
this.out.close();
// sleep for a while
try {Thread.sleep(1000);} catch (InterruptedException e) {}
// close everything
this.controlSocket.close();

Loading…
Cancel
Save