+ private State validate()
+ {
+ try {
+ if (this.state == State.ABORT) {
+ if (this.socket != null) {
+ this.socket.close();
+ this.state = State.INIT;
+ }
+ }
+ } catch (Exception e) {
+ Os.debug("Client: error closing socket", e);
+ }
+ return this.state;
+ }
+