From e45a95ead2ce5f78ef99b223a44991a112bf1432 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Sun, 24 May 2020 14:07:18 +0200 Subject: Attempt at fixing mixed content ws call --- sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw-bot') diff --git a/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt b/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt index 9f5f2983..68d96e55 100644 --- a/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt +++ b/sw-bot/src/main/kotlin/org/luxons/sevenwonders/bot/SevenWondersBot.kt @@ -32,8 +32,8 @@ class SevenWondersBot( ) { private val client = SevenWondersClient() - suspend fun play(serverHost: String, gameId: Long) = withTimeout(botConfig.globalTimeout) { - val session = client.connect(serverHost) + suspend fun play(serverUrl: String, gameId: Long) = withTimeout(botConfig.globalTimeout) { + val session = client.connect(serverUrl) session.chooseName(displayName, Icon("desktop")) session.joinGame(gameId) session.awaitGameStart(gameId) -- cgit