Rename Login to LoginHandler

This commit is contained in:
Him188 2019-10-03 19:36:01 +08:00
parent a157a106e8
commit 7dc35240e0

View File

@ -176,7 +176,7 @@ internal class TIMBotNetworkHandler(private val bot: Bot) : BotNetworkHandler {
*/
fun touch(serverAddress: String, timeoutMillis: Long): CompletableDeferred<LoginState> {
bot.info("Connecting server: $serverAddress")
if (this@TIMBotNetworkHandler::login.isInitialized) {
if (this@TIMBotNetworkHandler::loginHandler.isInitialized) {
loginHandler.close()
}
loginHandler = LoginHandler()