Skip to content

Commit 3a67a5c

Browse files
authored
Merge pull request #4 from Exafunction/main
fix: stack overflow for start call (Exafunction#304)
2 parents 832f125 + 821b570 commit 3a67a5c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)