浏览代码

修复客户端websocket退出BUG

wangliang 3 年之前
父节点
当前提交
9666e949e8
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      themis-exam/src/main/java/com/qmth/themis/exam/websocket/WebSocketOeServer.java

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