From 709a4a10be56952ead6340e4822fce41a66e47cd Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期三, 26 七月 2023 18:39:28 +0800
Subject: [PATCH] Merge branch '1.1' of http://120.76.84.145:10101/gitblit/r/java/SuperSaveDriving into dev

---
 zuul/src/main/java/com/sinata/zuul/util/echo/NettyChannelMap.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/zuul/src/main/java/com/sinata/zuul/util/echo/NettyChannelMap.java b/zuul/src/main/java/com/sinata/zuul/util/echo/NettyChannelMap.java
index b27fd8f..876752c 100644
--- a/zuul/src/main/java/com/sinata/zuul/util/echo/NettyChannelMap.java
+++ b/zuul/src/main/java/com/sinata/zuul/util/echo/NettyChannelMap.java
@@ -78,6 +78,9 @@
 	 */
 	@SuppressWarnings("rawtypes")
 	public static synchronized void remove(ChannelHandlerContext value) {
+		if(null == value){
+			return;
+		}
 		Set<String> strings = map.keySet();
 		for(String key : strings){
 			ChannelHandlerContext channelHandlerContext = map.get(key);
@@ -104,6 +107,11 @@
 		}
 	}
 
+
+	public static synchronized void remove_(String key) {
+		ctxMap.remove(key);
+	}
+
 	
 	/**
 	 * Remove the data resources.

--
Gitblit v1.7.1