浏览代码

解决data报错问题

johnclot69 3 月之前
父节点
当前提交
fa699f58cd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      incubator-core/src/main/java/com/incubator/core/net/ws/MsgBase.java

+ 1 - 1
incubator-core/src/main/java/com/incubator/core/net/ws/MsgBase.java

@@ -68,7 +68,7 @@ public abstract class MsgBase {
         this.cmd = 0;
         this.code = 0;
         this.message = "";
-        this.data.clear();
+        this.data = new ConcurrentHashMap<>();
     }
 
     /**