强制移除线程变量

This commit is contained in:
王涛 2023-06-02 09:13:37 +08:00
parent 7d9aa01d8d
commit 5a91d975a6

View File

@ -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("退出线程了");