Skip to content

Commit cbb1daf

Browse files
committed
refactor(bot): 优化聊天室机器人通知用户异常处理
- 移除多余的线程启动调用 - 简化异常处理逻辑 - 提高代码执行效率
1 parent d156543 commit cbb1daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/b3log/symphony/processor/bot/ChatRoomBot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ public static boolean record(final RequestContext context) {
379379
ChatroomChannel.removeSession(session);
380380
}
381381
JdbcRepository.dispose();
382-
}).start();
382+
});
383383
} catch (Exception e) {
384384
sendBotMsg("参数错误。");
385385
}

0 commit comments

Comments
 (0)