Skip to content

Commit

Permalink
[Core] Fixed Session Login
Browse files Browse the repository at this point in the history
  • Loading branch information
Linwenxuan04 committed Mar 26, 2024
1 parent 7335597 commit dd16c82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KonataNT/Core/BaseClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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)
Expand Down

0 comments on commit dd16c82

Please sign in to comment.