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();