File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
hsweb-web-websocket/src/main/java/org/hsweb/web/socket/cmd/support Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ public void exec(CMD cmd) throws Exception {
45
45
Publish publish = new Publish ();
46
46
publish .setUserId (userId );
47
47
publish .setCallback ((String ) cmd .getParams ().get ("callback" ));
48
- cpuPublish .put (userId , publish );
49
48
return publish ;
50
49
};
51
50
@@ -55,6 +54,7 @@ public void exec(CMD cmd) throws Exception {
55
54
if (publish == null )
56
55
publish = supplier .get ();
57
56
publish .addSession (cmd .getSession ());
57
+ cpuPublish .put (userId , publish );
58
58
if (!cpuMonitorIsStarted ) {
59
59
startPublishCpu ();
60
60
cpuMonitorIsStarted = true ;
@@ -66,6 +66,7 @@ public void exec(CMD cmd) throws Exception {
66
66
if (publish == null )
67
67
publish = supplier .get ();
68
68
publish .addSession (cmd .getSession ());
69
+ memPublish .put (userId , publish );
69
70
if (!memMonitorIsStarted ) {
70
71
startPublishMem ();
71
72
memMonitorIsStarted = true ;
You can’t perform that action at this time.
0 commit comments