From be0937a459624ce1170f158f9d8660d0ade47eb4 Mon Sep 17 00:00:00 2001 From: yetone Date: Thu, 14 Aug 2025 17:55:24 +0800 Subject: [PATCH] fix: timer already closed (#2608) --- lua/avante/llm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/avante/llm.lua b/lua/avante/llm.lua index c50379c..ba6dc24 100644 --- a/lua/avante/llm.lua +++ b/lua/avante/llm.lua @@ -989,7 +989,7 @@ function M._stream(opts) if retry_count <= 0 then timer:stop() - timer:close() + pcall(function() timer:close() end) Utils.info("Restarting stream after rate limit pause") M._stream(opts)