Log before do something

This commit is contained in:
Him188 2019-11-29 21:39:39 +08:00
parent 8c9c870cf3
commit 618b5f8032

View File

@ -381,8 +381,8 @@ internal class TIMBotNetworkHandler internal constructor(coroutineContext: Corou
is TouchPacket.TouchResponse.Redirection -> {
withContext(userContext) {
socket.close()
socket = BotSocketAdapter(packet.serverIP!!)
bot.logger.info("Redirecting to ${packet.serverIP}")
socket = BotSocketAdapter(packet.serverIP!!)
loginResult.complete(socket.resendTouch())
}
}