mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-11-05 17:44:16 +00:00
Provide worker instance to w3dhub api client
This commit is contained in:
@@ -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|
|
||||
|
||||
@@ -10,7 +10,9 @@ module W3DHubLauncher
|
||||
|
||||
attr_writer :access_token
|
||||
|
||||
def initialize
|
||||
def initialize(worker)
|
||||
@worker = worker
|
||||
|
||||
@access_token = nil
|
||||
|
||||
@applications = []
|
||||
|
||||
Reference in New Issue
Block a user