diff --git a/KonataNT/Core/BaseClient.cs b/KonataNT/Core/BaseClient.cs index be846eb..2c3bf07 100644 --- a/KonataNT/Core/BaseClient.cs +++ b/KonataNT/Core/BaseClient.cs @@ -60,6 +60,8 @@ internal BaseClient(BotKeystore keystore, BotConfig config) public async Task<(string Url, byte[] Image)?> FetchQrCode() { + await PacketHandler.Connect(); + if (KeyStore.D2.Length != 0) { if (DateTime.Now - KeyStore.SessionTime > TimeSpan.FromDays(15)) @@ -80,8 +82,6 @@ internal BaseClient(BotKeystore keystore, BotConfig config) } } - await PacketHandler.Connect(); - var tlv = new TlvPacker(KeyStore, AppInfo); var body = new BinaryPacket() .WriteUshort(0)