This commit is contained in:
Redkale
2020-06-22 11:07:26 +08:00
parent 474f82b3cf
commit 0dfc0ca853

View File

@@ -152,6 +152,7 @@ public class WebSocketEngine {
@Comment("从WebSocketEngine删除指定WebSocket")
CompletableFuture<Void> removeLocalThenClose(WebSocket socket) {
Serializable userid = socket._userid;
if (userid == null) return null; //尚未登录成功
if (single) {
currconns.decrementAndGet();
websockets.remove(userid);