Skip to content

Commit

Permalink
fix: remove deleted object
Browse files Browse the repository at this point in the history
  • Loading branch information
nidbCN committed Dec 14, 2024
1 parent 4c0b037 commit 94ab5d4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions StreamingCaptureBot.Core/Bots/LagrangeBot/LagrangeHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,9 @@ private async Task ProcessBotOnline(BotContext bot, BotOnlineEvent _)
// save device info and keystore
try
{
var deviceInfo = botCtx.UpdateDeviceInfo();

logger.LogDebug("{name} updated {isUpdated}, save.", nameof(BotDeviceInfo), deviceInfo == botDeviceInfo);
await using var deviceInfoFileStream = isoStorage.OpenFile(implOptions.Value.DeviceInfoFile, FileMode.Create, FileAccess.Write);
await JsonSerializer.SerializeAsync(deviceInfoFileStream, botCtx.UpdateDeviceInfo());

logger.LogDebug("Save {name}.", nameof(BotKeystore));
var keyStore = botCtx.UpdateKeystore();

// update password hash
Expand Down Expand Up @@ -95,8 +91,7 @@ private void ProcessBotOffline(BotContext bot, BotOfflineEvent _)

appLifetime.StopApplication();
}



private async Task ProcessMessage(MessageChain message, BotContext thisBot)
{
var isGroup = message.GroupUin is not null;
Expand Down

0 comments on commit 94ab5d4

Please sign in to comment.