Skip to content

Commit

Permalink
increase thread data timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Bauumm committed Nov 30, 2024
1 parent 47a8ac3 commit 9975c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/game.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ function game.init(render_top_scores)
thread:start("server.game_thread", true)
love.thread.getChannel("game_commands"):push({ "set_render_top_scores", render_top_scores })
love.thread.getChannel("game_commands"):push({ "get_levels21" })
game.level_validators = love.thread.getChannel("ranked_levels"):demand(1)
game.level_validators = love.thread.getChannel("ranked_levels"):demand(5)
if not game.level_validators then
error("failed getting level ids from thread: " .. (thread:getError() or "no error"))
end
game.levels = love.thread.getChannel("ranked_levels"):demand(1)
game.levels = love.thread.getChannel("ranked_levels"):demand(5)
if not game.levels then
error("failed getting levels from thread: " .. (thread:getError() or "no error"))
end
Expand Down

0 comments on commit 9975c5c

Please sign in to comment.