Skip to content

Commit

Permalink
Throw error when re-connecting is failed
Browse files Browse the repository at this point in the history
  • Loading branch information
yukukotani committed Oct 9, 2019
1 parent 7c487a1 commit bd3d7a4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ class PlayerDataSynchronizer(private val synchronizingOriginNames: Set<String>)
if (serverSwitchWaitingMap[player.name] !is PlayerDataUnloaded) return

serverSwitchWaitingMap.remove(player.name)
player.connect(event.cancelServer)
player.connect(event.cancelServer) { isSucceed, exception ->
if (!isSucceed) throw exception
}
}

@Suppress("unused")
Expand Down

0 comments on commit bd3d7a4

Please sign in to comment.