whycxzp
2022-08-10 d8ca9ccd14fe70e83bd586468cbc3db569f91de2
src/main/java/com/whyc/webSocket/WorksheetSocket.java
@@ -57,9 +57,8 @@
    @OnClose
    public void onClose(CloseReason closeReason) throws IOException {
        System.err.println("closeReason = " + closeReason);
        thread.isInterrupted();
        this.thread.interrupt();
        if(session.isOpen()){
            this.thread.interrupt();
            session.close();
        }
    }
@@ -67,9 +66,8 @@
    @OnError
    public void onError(Throwable error) throws IOException {
        error.printStackTrace();
        thread.isInterrupted();
        this.thread.interrupt();
        if(session.isOpen()){
            this.thread.interrupt();
            session.close();
        }
    }