whyclxw
2025-05-15 96510a549bfb313920bf297b28089c4cf57f0146
src/main/java/com/whyc/webSocket/StationInfSocket.java
@@ -52,13 +52,10 @@
            @Override
            public void run() {
                try {
                    while (!currentThread().isInterrupted()) {
                        while (!currentThread().isInterrupted()) {
                            Response res = stationService.getLeftStation(userId);
                            session.getBasicRemote().sendObject(res);
                            sleep(5000);
                        }
                        Response res = stationService.getLeftStation(userId);
                        session.getBasicRemote().sendObject(res);
                        sleep(5000);
                    }
                } catch (Exception e) {
                    this.interrupt();