diff options
author | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-26 22:25:02 +0100 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@booking.com> | 2020-03-27 10:59:39 +0100 |
commit | b52f3f67ec4f4e1bc852c8c650ee9c95f7fe8268 (patch) | |
tree | 9c1eaf1fd1039bdfc6ec2d34526933338056b64d /sw-ui-kt/src | |
parent | Rework sagas and router to sub/unsubscribe properly (diff) | |
download | seven-wonders-b52f3f67ec4f4e1bc852c8c650ee9c95f7fe8268.tar.gz seven-wonders-b52f3f67ec4f4e1bc852c8c650ee9c95f7fe8268.tar.bz2 seven-wonders-b52f3f67ec4f4e1bc852c8c650ee9c95f7fe8268.zip |
Fix lobby updates
Diffstat (limited to 'sw-ui-kt/src')
-rw-r--r-- | sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/LobbySagas.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/LobbySagas.kt b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/LobbySagas.kt index 143fecd8..b081e61d 100644 --- a/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/LobbySagas.kt +++ b/sw-ui-kt/src/main/kotlin/org/luxons/sevenwonders/ui/redux/sagas/LobbySagas.kt @@ -14,7 +14,7 @@ import org.luxons.sevenwonders.ui.router.Route suspend fun SwSagaContext.lobbySaga(session: SevenWondersSession) { val lobbyId = getState().currentLobbyId ?: error("Lobby saga run without a current lobby") coroutineScope { - val lobbyUpdatesSubscription = session.watchLobbyUpdates(lobbyId) + val lobbyUpdatesSubscription = session.watchLobbyUpdates() launch { watchLobbyUpdates(lobbyUpdatesSubscription) } val startGameJob = launch { awaitStartGame(session) } |