Skip to content

Commit

Permalink
Fix issue with spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
frankroeder committed Oct 15, 2024
1 parent ecdcd51 commit 268f227
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions lua/parrot/chat_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1558,16 +1558,7 @@ function ChatHandler:query(buf, provider, payload, handler, on_exit)
end
end,
})
local ok, err = pcall(function()
job:start()
end)
if not ok then
logger.error(string.format("Failed to start curl job: %s", err))
if on_exit then
on_exit(qid)
end
return
end
job:start()
self.pool:add(job, buf)
end

Expand Down

0 comments on commit 268f227

Please sign in to comment.