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