Provide worker instance to w3dhub api client

This commit is contained in:
2026-10-31 10:25:47 -05:00
parent 3a15789a29
commit 27b0d92ccf
2 changed files with 4 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ module W3DHubLauncher
@game_servers = []
@host_pings = {}
@w3dhub_api = W3DHubLauncher::W3DHubApi.new
@w3dhub_api = W3DHubLauncher::W3DHubApi.new(self)
Async do |task|
task.async do |subtask|

View File

@@ -10,7 +10,9 @@ module W3DHubLauncher
attr_writer :access_token
def initialize
def initialize(worker)
@worker = worker
@access_token = nil
@applications = []