mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 18:00:33 +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> {
|
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user