Skip to content

Commit 821b570

Browse files
fix: stack overflow for start call (Exafunction#304)
1 parent 6e4a661 commit 821b570

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lua/codeium/api.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ function Server:start()
201201
self.current_cookie = next_cookie()
202202

203203
if not api_key then
204-
io.timer(1000, 0, self:start())
204+
io.timer(1000, 0, function()
205+
self:start()
206+
end)
205207
return
206208
end
207209

0 commit comments

Comments
 (0)