File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
server/src/main/java/com/orientechnologies/orient/server Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11package com .orientechnologies .orient .server ;
22
33import com .orientechnologies .orient .client .remote .message .OBinaryPushRequest ;
4- import java .util .HashSet ;
4+ import java .util .Collections ;
55import java .util .Iterator ;
66import java .util .Set ;
77import java .util .concurrent .ConcurrentHashMap ;
@@ -26,7 +26,7 @@ public synchronized OBinaryPushRequest<?> getRequest(String database) {
2626 public synchronized void subscribe (String database , OPushInfo protocol ) {
2727 Set <OPushInfo > pushSockets = listeners .get (database );
2828 if (pushSockets == null ) {
29- pushSockets = new HashSet <>();
29+ pushSockets = Collections . newSetFromMap ( new ConcurrentHashMap <>() );
3030 listeners .put (database , pushSockets );
3131 }
3232 pushSockets .add (protocol );
You can’t perform that action at this time.
0 commit comments