mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-08 09:10:11 +08:00
Rename Login to LoginHandler
This commit is contained in:
parent
a157a106e8
commit
7dc35240e0
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user