Эх сурвалжийг харах

修复客户端websocket退出BUG

wangliang 3 жил өмнө
parent
commit
9666e949e8

+ 1 - 3
themis-exam/src/main/java/com/qmth/themis/exam/websocket/WebSocketOeServer.java

@@ -129,11 +129,9 @@ public class WebSocketOeServer implements Concurrently {
                     //发送延时mq消息end
                 } else {
                     log.info("正常退出");
-                    ExamConstant.sendExamStopMsg(this.recordId, true, false);
+//                    ExamConstant.sendExamStopMsg(this.recordId, true, false);
                     tOeExamRecordService.examBreakLogic(this.recordId, true);
                 }
-            } else if (Objects.equals(status, ExamRecordStatusEnum.FIRST_PREPARE) || Objects.equals(status, ExamRecordStatusEnum.RESUME_PREPARE)) {
-                ExamConstant.sendExamStopMsg(this.recordId, true, true);
             }
         }
         log.info("用户退出:{},当前在线人数为:{},updateTime:{}", this.websocketSessionId, getOnlineCount(), this.updateTime);