Skip to content

Commit d156543

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

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
@@ -759,7 +759,7 @@ public static void sendBotMsg(String content) {
759759
} catch (Exception e) {
760760
LOGGER.log(Level.ERROR, "notify user failed", e);
761761
}
762-
}).start();
762+
});
763763
}
764764

765765
// 扣除积分

0 commit comments

Comments
 (0)