Skip to content
This repository was archived by the owner on May 27, 2026. It is now read-only.

Commit 723aec0

Browse files
committed
fix: delete keystore on login failed
1 parent 9e29056 commit 723aec0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lagrange.Milky/Core/CoreLoginService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ public async Task StartAsync(CancellationToken token)
4040
if (!result)
4141
{
4242
_logger.LogLoginFailed();
43+
44+
var path = $"{uin}.keystore";
45+
if (File.Exists(path))
46+
File.Delete(path);
47+
4348
_ = _host.StopAsync(CancellationToken.None);
4449
}
4550
_logger.LogLoginSuccessful(_bot.BotUin, _bot.Config.Protocol, _bot.AppInfo.CurrentVersion);

0 commit comments

Comments
 (0)