|
|
|
@ -532,7 +532,7 @@ public final class serverCore extends serverAbstractBusyThread implements server
|
|
|
|
|
if (this.controlSocket != null) try {
|
|
|
|
|
this.controlSocket.close();
|
|
|
|
|
serverCore.this.log.logInfo("Closing main socket of thread '" + this.getName() + "'");
|
|
|
|
|
this.controlSocket = null;
|
|
|
|
|
//this.controlSocket = null;
|
|
|
|
|
} catch (final Exception e) {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -620,8 +620,7 @@ public final class serverCore extends serverAbstractBusyThread implements server
|
|
|
|
|
System.err.println("ERROR: (internal) " + e);
|
|
|
|
|
} finally {
|
|
|
|
|
try {
|
|
|
|
|
if ((this.controlSocket == null) || this.controlSocket.isClosed()) return;
|
|
|
|
|
|
|
|
|
|
if ((this.controlSocket != null) && (! this.controlSocket.isClosed())) {
|
|
|
|
|
// flush data
|
|
|
|
|
this.out.flush();
|
|
|
|
|
|
|
|
|
@ -637,7 +636,7 @@ public final class serverCore extends serverAbstractBusyThread implements server
|
|
|
|
|
|
|
|
|
|
// close everything
|
|
|
|
|
this.controlSocket.close();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
} catch (final IOException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|