Resolved #8431 - Do not load updated multiplayer if the user has already gone somewhere else

This commit is contained in:
Yair Morgenstern
2023-01-21 22:12:52 +02:00
parent fbdf980365
commit efcf91dd19

View File

@ -337,6 +337,8 @@ class WorldScreen(
}
private suspend fun loadLatestMultiplayerState(): Unit = coroutineScope {
if (game.screen != this@WorldScreen) return@coroutineScope // User already went somewhere else
val loadingGamePopup = Popup(this@WorldScreen)
launchOnGLThread {
loadingGamePopup.addGoodSizedLabel("Loading latest game state...")