*) bugfix for SocketException:

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3893 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 18 years ago
parent 71fd972ac0
commit 7a1b811d18

@ -1119,10 +1119,10 @@ public final class serverCore extends serverAbstractThread implements serverThre
System.err.println("ERROR: (internal) " + e);
} finally {
try {
// flush data
this.out.flush();
this.in.close();
this.out.close();
// sleep for a while
try {Thread.sleep(1000);} catch (InterruptedException e) {}
// maybe this doesn't work for all SSL socket implementations
@ -1131,6 +1131,11 @@ public final class serverCore extends serverAbstractThread implements serverThre
this.controlSocket.shutdownOutput();
}
// close streams
this.in.close();
this.out.close();
// close everything
this.controlSocket.close();
this.controlSocket = null;

Loading…
Cancel
Save