From 5a91d975a6350b797dc81449320f5abe8d593165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=B6=9B?= <2450572350@qq.com> Date: Fri, 2 Jun 2023 09:13:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=88=B6=E7=A7=BB=E9=99=A4=E7=BA=BF?= =?UTF-8?q?=E7=A8=8B=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/example/wxhk/tcp/vertx/ArrHandle.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/java_client/src/main/java/com/example/wxhk/tcp/vertx/ArrHandle.java b/java_client/src/main/java/com/example/wxhk/tcp/vertx/ArrHandle.java index 67943a1..f60d5b4 100644 --- a/java_client/src/main/java/com/example/wxhk/tcp/vertx/ArrHandle.java +++ b/java_client/src/main/java/com/example/wxhk/tcp/vertx/ArrHandle.java @@ -51,9 +51,10 @@ public class ArrHandle { continue; } WxMsgHandle.exec(privateChatMsg); - chatMsgThreadLocal.remove(); } catch (Exception e) { log.error(e); + }finally { + chatMsgThreadLocal.remove(); } } log.error("退出线程了"); @@ -72,9 +73,10 @@ public class ArrHandle { continue; } WxMsgHandle.exec(privateChatMsg); - chatMsgThreadLocal.remove(); } catch (Exception e) { log.error(e); + }finally { + chatMsgThreadLocal.remove(); } } log.error("退出线程了");