Commit 7dc35240 authored by Him188's avatar Him188

Rename Login to LoginHandler

parent a157a106
...@@ -176,7 +176,7 @@ internal class TIMBotNetworkHandler(private val bot: Bot) : BotNetworkHandler { ...@@ -176,7 +176,7 @@ internal class TIMBotNetworkHandler(private val bot: Bot) : BotNetworkHandler {
*/ */
fun touch(serverAddress: String, timeoutMillis: Long): CompletableDeferred<LoginState> { fun touch(serverAddress: String, timeoutMillis: Long): CompletableDeferred<LoginState> {
bot.info("Connecting server: $serverAddress") bot.info("Connecting server: $serverAddress")
if (this@TIMBotNetworkHandler::login.isInitialized) { if (this@TIMBotNetworkHandler::loginHandler.isInitialized) {
loginHandler.close() loginHandler.close()
} }
loginHandler = LoginHandler() loginHandler = LoginHandler()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment