Skip to content

Commit

Permalink
Avoid full_moon stack-overflow issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jeparlefrancais committed Dec 21, 2023
1 parent 1e51d39 commit 91883d1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Observable.lua
Original file line number Diff line number Diff line change
Expand Up @@ -626,11 +626,9 @@ function Observable:concat<R>(...: Observable<R>): Observable<R>
subscription = nil
observer:complete()
else
startNext(C.from(sources[(function()
local result = index
index += 1
return result
end)()]))
local current = index
index += 1
startNext(C.from(sources[current]))
end
end,
})
Expand Down

0 comments on commit 91883d1

Please sign in to comment.